Class InitialContextAccessor

  • All Implemented Interfaces:
    Context

    public class InitialContextAccessor
    extends InitialContext
    Utility class used for testing JNDI space provider.
    Since:
    5.5
    Author:
    Stephane Lacoin (aka matic)
    • Method Detail

      • _getInitCtx

        protected Context _getInitCtx()
      • isAvailable

        public static boolean isAvailable()
        Check for JNDI space availability
        Returns:
        true if JNDI space exists
      • isWritable

        public static boolean isWritable​(Context ctx,
                                         String prefix)
        Try writing in JNDI space
        Returns:
        true if JNDI space is writable
      • getInitialContext

        public static Context getInitialContext()
        Get access to the default initial context implementation
        Returns:
        the initial context implementation