|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.itracker.services.util.NamingUtilites
public class NamingUtilites
Utilities class for naming
| Constructor Summary | |
|---|---|
NamingUtilites()
|
|
| Method Summary | |
|---|---|
static Context |
getDefaultInitialContext()
get a default initial context |
static Context |
getDefaultInitialContext(Hashtable<?,?> environment)
get a default initial context |
static String |
getStringValue(Context ctx,
String lookupName,
String defaultValue)
Read a String value of any type of object |
static Object |
lookup(Context ctx,
String lookupName)
savely get object from naming context |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamingUtilites()
| Method Detail |
|---|
public static final String getStringValue(Context ctx,
String lookupName,
String defaultValue)
ctx - -
Context for lookuplookupName - -
lookup namedefaultValue - -
default value
public static final Object lookup(Context ctx,
String lookupName)
ctx - lookupName -
IllegalArgumentException - -
if any argument is null, or the lookup name was empty
public static final Context getDefaultInitialContext(Hashtable<?,?> environment)
throws NamingException
NamingException
IllegalStateException - - if initial context was null
public static final Context getDefaultInitialContext()
throws NamingException
NamingException
IllegalStateException - - if initial context was null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||