|
||||||||||
| 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 Context |
getContext()
Returns the naming context. |
static Object |
lookup(String jndiName)
Lookup an object instance from JNDI context. |
static void |
refresh()
Refresh the used InitialContext instance. |
static void |
setContext(Properties properties)
Set the used InitialContext. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamingLocator()
| Method Detail |
|---|
public static Context getContext()
public static Object lookup(String jndiName)
jndiName - JNDI lookup name
public static void refresh()
InitialContext instance.
public static void setContext(Properties properties)
throws 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
NamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||