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
- NamingException
public static InitialContext findDefault() throws NamingException
Finds the existing one.
NamingException
public static InitialContext findOrCreate(Hashtable<?,?> environment) throws NamingException
Finds the existing one or create a new one.
environment
- NamingException
public static InitialContext findOrCreate() throws NamingException
Finds the existing one or create a new one.
NamingException
protected static InitialContext createFSContext() throws NamingException
NamingException
Copyright © 2014. All Rights Reserved.