Class JavaApiGaps

java.lang.Object
org.glassfish.main.jdke.JavaApiGaps

public final class JavaApiGaps extends Object
This class collects missing gaps in JDK's public API, which are needed.
  • 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 InitialContextFactoryBuilder when necessary, because the class doesn't have any suitable public method for that.

      Parameters:
      builder - the InitialContextFactoryBuilder to set
      Throws:
      NamingException
      IllegalStateException - if the builder was already set
    • unsetInitialContextFactoryBuilder

      public static void unsetInitialContextFactoryBuilder() throws NamingException
      Sets the InitialContextFactoryBuilder in NamingManager to null.

      This is used to reset the InitialContextFactoryBuilder when necessary, because the class doesn't have any suitable public method for that.

      Throws:
      NamingException