Package africa.absa.inception.core.util
Class JNDIUtil
- java.lang.Object
-
- africa.absa.inception.core.util.JNDIUtil
-
public final class JNDIUtil extends Object
The JNDIUtil class provides JNDI utility functions.- Author:
- Marcus Portmann
-
-
Constructor Summary
Constructors Constructor Description JNDIUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclose(DirContext dirContext)Close the JNDIUtil directory context.static voidclose(SearchResult searchResult)Close the JNDIUtil search result.static voidclose(NamingEnumeration<SearchResult> searchResults)Close the JNDIUtil search results.static voiddumpJNDI()Dump the contents of the JNDIUtil tree.static StringdumpJNDIToString()Dump the contents of the JNDIUtil tree.
-
-
-
Method Detail
-
close
public static void close(DirContext dirContext)
Close the JNDIUtil directory context.- Parameters:
dirContext- the JNDIUtil directory context
-
close
public static void close(NamingEnumeration<SearchResult> searchResults)
Close the JNDIUtil search results.- Parameters:
searchResults- the JNDIUtil search results
-
close
public static void close(SearchResult searchResult)
Close the JNDIUtil search result.- Parameters:
searchResult- the JNDIUtil search result
-
dumpJNDI
public static void dumpJNDI()
Dump the contents of the JNDIUtil tree.
-
dumpJNDIToString
public static String dumpJNDIToString()
Dump the contents of the JNDIUtil tree.- Returns:
- the contents of the JNDIUtil as a String
-
-