Package com.zfabrik.util.internal
Class NamingProvisioningHolder
java.lang.Object
com.zfabrik.util.internal.NamingProvisioningHolder
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Interface registered by the Z2 hosted naming system implementation -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InitialContextFactory
findInitialContextFactory
(String initCtxtFactoryName, Hashtable<?, ?> env) Find an InitialContextFactory given the name and env.static ObjectFactory
findURLContextFactory
(String scheme, Hashtable<?, ?> env) Find a URL Context Factory for the schema and env.Never returns null.void
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NamingProvisioningHolder
public NamingProvisioningHolder()
-
-
Method Details
-
setNaming
-
getNaming
Never returns null.- Throws:
NamingException
-
findInitialContextFactory
public static InitialContextFactory findInitialContextFactory(String initCtxtFactoryName, Hashtable<?, ?> env) throws NamingExceptionFind an InitialContextFactory given the name and env. Never returns null.- Throws:
NamingException
-
findURLContextFactory
public static ObjectFactory findURLContextFactory(String scheme, Hashtable<?, ?> env) throws NamingExceptionFind a URL Context Factory for the schema and env. Never returns null.- Throws:
NamingException
-