java.lang.Object
org.glassfish.main.jdke.JavaApiGaps
This class collects missing gaps in JDK's public API, which are needed.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidSets the InitialContextFactoryBuilder in NamingManager if it was not set yet.static voidSets the InitialContextFactoryBuilder in NamingManager to null.
-
Method Details
-
setInitialContextFactoryBuilder
public static void setInitialContextFactoryBuilder(InitialContextFactoryBuilder builder) throws NamingException Sets the InitialContextFactoryBuilder in NamingManager if it was not set yet.This is used to reset the
InitialContextFactoryBuilderwhen necessary, because the class doesn't have any suitable public method for that.- Parameters:
builder- the InitialContextFactoryBuilder to set- Throws:
NamingExceptionIllegalStateException- if the builder was already set
-
unsetInitialContextFactoryBuilder
Sets the InitialContextFactoryBuilder in NamingManager to null.This is used to reset the
InitialContextFactoryBuilderwhen necessary, because the class doesn't have any suitable public method for that.- Throws:
NamingException
-