java.lang.Object
ch.qos.logback.core.util.JNDIUtil
A simple utility class to create and use a JNDI Context.
- Author:
- Ceki Gülcü, Michael Osipov, Sébastien Pennec
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Context
static Context
getInitialContext
(Hashtable<?, ?> props) static void
jndiNameSecurityCheck
(String name) static Object
lookupObject
(Context ctx, String name) static String
lookupString
(Context ctx, String name)
-
Constructor Details
-
JNDIUtil
public JNDIUtil()
-
-
Method Details
-
getInitialContext
- Throws:
NamingException
-
getInitialContext
- Throws:
NamingException
-
lookupObject
- Throws:
NamingException
-
jndiNameSecurityCheck
- Throws:
NamingException
-
lookupString
- Throws:
NamingException
-