Class NamingProvisioningHolder


  • public class NamingProvisioningHolder
    extends java.lang.Object
    Previously the naming system integration with Z2 worked via registration of an InitialContextFactoryBuilder and an ObjectFactoryBuilder directly with the Naming Manager. That can be done once only per life time of a VM and is hence not very embedding friendly. Now we register only a convenient access to the Z2 naming system extension mechanism by allowing a lookup for a URLContextFactory and an InitialContextFactory as provided by naming extensions. These lookups can be used by standard URL handlers etc to delegate to Z2 provided extensions.
    • Constructor Detail

      • NamingProvisioningHolder

        public NamingProvisioningHolder()
    • Method Detail

      • findInitialContextFactory

        public static javax.naming.spi.InitialContextFactory findInitialContextFactory​(java.lang.String initCtxtFactoryName,
                                                                                       java.util.Hashtable<?,​?> env)
                                                                                throws javax.naming.NamingException
        Find an InitialContextFactory given the name and env. Never returns null.
        Throws:
        javax.naming.NamingException
      • findURLContextFactory

        public static javax.naming.spi.ObjectFactory findURLContextFactory​(java.lang.String scheme,
                                                                           java.util.Hashtable<?,​?> env)
                                                                    throws javax.naming.NamingException
        Find a URL Context Factory for the schema and env. Never returns null.
        Throws:
        javax.naming.NamingException