|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.core.NamingLocator
public class NamingLocator
Encapsulates a reference to the JNDI Naming context.
Constructor Summary | |
---|---|
NamingLocator()
|
Method Summary | |
---|---|
static javax.naming.Context |
getContext()
Returns the naming context. |
static java.lang.Object |
lookup(java.lang.String jndiName)
Lookup an object instance from JNDI context. |
static void |
refresh()
Refresh the used InitialContext instance. |
static void |
setContext(java.util.Properties properties)
Set the used InitialContext . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamingLocator()
Method Detail |
---|
public static javax.naming.Context getContext()
public static java.lang.Object lookup(java.lang.String jndiName)
jndiName
- JNDI lookup name
public static void refresh()
InitialContext
instance.
public static void setContext(java.util.Properties properties) throws javax.naming.NamingException
InitialContext
. If properties argument is null, the default
initial context was used.
properties
- The properties used for context instantiation - the properties are:
Context.INITIAL_CONTEXT_FACTORY
, Context.PROVIDER_URL
, Context.URL_PKG_PREFIXES
javax.naming.NamingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |