public class InitialContextFinder extends Object
Finds InitialContext. If there is one, then return the one. If not, then create a one of type com.sun.jndi.fscontext.RefFSContextFactory and return it.
| Modifier and Type | Field and Description |
|---|---|
protected static boolean |
found |
| Constructor and Description |
|---|
InitialContextFinder() |
| Modifier and Type | Method and Description |
|---|---|
protected static InitialContext |
createFSContext() |
static InitialContext |
findDefault()
找到现成的。
|
static InitialContext |
findDefault(Hashtable<?,?> environment)
找到现成的。
|
static InitialContext |
findOrCreate()
找到现成的的或创建一个。
|
static InitialContext |
findOrCreate(Hashtable<?,?> environment)
找到现成的的或创建一个。
|
public static InitialContext findDefault(Hashtable<?,?> environment) throws NamingException
Finds the existing one.
environment - NamingExceptionpublic static InitialContext findDefault() throws NamingException
Finds the existing one.
NamingExceptionpublic static InitialContext findOrCreate(Hashtable<?,?> environment) throws NamingException
Finds the existing one or create a new one.
environment - NamingExceptionpublic static InitialContext findOrCreate() throws NamingException
Finds the existing one or create a new one.
NamingExceptionprotected static InitialContext createFSContext() throws NamingException
NamingExceptionCopyright © 2014. All Rights Reserved.