|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jabb.util.context.InitialContextFinder
public class InitialContextFinder
找到InitialContext,如果存在则返回缺省的,如果不存在则创建并返回一个 com.sun.jndi.fscontext.RefFSContextFactory。
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.
| Field Summary | |
|---|---|
protected static boolean |
found
|
| Constructor Summary | |
|---|---|
InitialContextFinder()
|
|
| Method Summary | |
|---|---|
protected static InitialContext |
createFSContext()
|
static InitialContext |
findDefault()
找到现成的。 |
static InitialContext |
findDefault(Hashtable<?,?> environment)
找到现成的。 |
static InitialContext |
findOrCreate()
找到现成的的或创建一个。 |
static InitialContext |
findOrCreate(Hashtable<?,?> environment)
找到现成的的或创建一个。 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static boolean found
| Constructor Detail |
|---|
public InitialContextFinder()
| Method Detail |
|---|
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||