|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.slim3.commons.jndi.Jndi
public final class Jndi
A class to access naming context conveniently.
| Field Summary | |
|---|---|
static String |
FRONT_NAMING_FACTORY_KEY
The key for front initial context factory. |
| Method Summary | ||
|---|---|---|
static Context |
getContext()
Returns the naming context. |
|
static void |
initialize()
Initializes this class. |
|
static
|
lookup(String name)
Looks up a object by the name. |
|
static
|
lookupWithoutNameNotFoundException(String name)
Looks up a object by the name. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FRONT_NAMING_FACTORY_KEY
| Method Detail |
|---|
public static void initialize()
public static final Context getContext()
public static <T> T lookup(String name)
throws NameNotFoundRuntimeException,
NamingRuntimeException
T - the typename - the name
NameNotFoundRuntimeException - if the name is not bound to any objects.
NamingRuntimeException - if NamingException is encountered.
public static <T> T lookupWithoutNameNotFoundException(String name)
throws NamingRuntimeException
T - the typename - the name
NamingRuntimeException - if NamingException is encountered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||