|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.spif.naming.InitialContextFactory
A vm-wide actory for initial contextes which remembers its configuration.
Constructor Summary | |
InitialContextFactory()
|
Method Summary | |
static javax.naming.InitialContext |
getContext()
|
static void |
initialize(java.util.Properties lookupProperties)
Initializes the initial context factory. |
static void |
printContext()
Prints the entire context tree to standard out |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public InitialContextFactory()
Method Detail |
public static void initialize(java.util.Properties lookupProperties)
Initializes the initial context factory. This must be done at startup in any vm using this factory.
The property file must at least contain
java.naming.factory.initial=
Maybe more, depending on server.
lookupProperties
- a file containing the properties required to look up
the initial context of the naming server usedpublic static javax.naming.InitialContext getContext()
ConfigurationException
- if an initial context could not be createdpublic static void printContext()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |