org.apache.ojb.broker.core
Class NamingLocator
java.lang.Object
org.apache.ojb.broker.core.NamingLocator
- public class NamingLocator
- extends java.lang.Object
Encapsulates a reference to the JNDI Naming context.
- Version:
- $Id: NamingLocator.java,v 1.1 2003/04/26 23:18:25 arminw Exp $
- Author:
- Thomas Mahler
Method Summary |
static javax.naming.Context |
getContext()
Returns the naming context. |
static java.lang.Object |
lookup(java.lang.String jndiName)
|
static void |
refresh()
|
static void |
setContext(java.util.Properties properties)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamingLocator
public NamingLocator()
getContext
public static javax.naming.Context getContext()
- Returns the naming context.
lookup
public static java.lang.Object lookup(java.lang.String jndiName)
refresh
public static void refresh()
setContext
public static void setContext(java.util.Properties properties)
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14