Class scnURLContextFactory

  • All Implemented Interfaces:
    ObjectFactory

    public class scnURLContextFactory
    extends Object
    implements ObjectFactory
    Context factory for scnURLContext objects. This factory will be used for all "scn:..." urls provided as Name objects for all JNDI operations.
    • Field Detail

      • logger

        public static final Logger logger
    • Constructor Detail

      • scnURLContextFactory

        public scnURLContextFactory()
    • Method Detail

      • getObjectInstance

        public Object getObjectInstance​(Object url,
                                        Name name,
                                        Context ctx,
                                        Hashtable env)
                                 throws Exception
        Returns an instance of scnURLContext for a java URL. If url is null, the result is a context for resolving java URLs. If url is a URL, the result is a context named by the URL.
        Specified by:
        getObjectInstance in interface ObjectFactory
        Parameters:
        url - String with a "scn:" prefix or null.
        name - Name of context, relative to ctx, or null.
        ctx - Context relative to which 'name' is named.
        env - Environment to use when creating the context
        Throws:
        Exception