oracle.adf.share.services.jndi
Class DescriptorFactory
java.lang.Object
oracle.adf.share.services.jndi.DescriptorFactory
- All Implemented Interfaces:
- javax.naming.spi.InitialContextFactory
public class DescriptorFactory
- extends java.lang.Object
- implements javax.naming.spi.InitialContextFactory
Factory for URLDescriptor creation based on either:
a single jar specified as a providerURL, or
a classloader with 0-n adf library jars.
Those parameters are mutually exclusive and the classloader is checked first.
If neither one is specified then the current context class loader is used.
If no provider_url, no classloader, or no adflibs in thread loader
then a logically empty context is returned.
Note: you must have a jndi.properties with this class name as the initial
context class name, or pass a Hashtable directly with this class name.
NOTE: OperationNotSupportedException is thrown for almost all
Context mutator methods because this is a context over one or
more jar files which we don't allow to be updated by this method!
Example namespace names for this context look like:
"|"
"|" + "simple.jar"
"|" + "simple.jar" + "|" + "ADF_TaskFlow"
"|" + "simple.jar" + "|" + "ADF_DataControl" + "|" + "pkg/JavaBean.xml"
"|" + "simple.jar" + "|" + "ADF_BusComps" + "|" + "pkg/name/AppModule.xml"
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DescriptorFactory
public DescriptorFactory()
getInitialContext
public javax.naming.Context getInitialContext(java.util.Hashtable<?,?> env)
- Specified by:
getInitialContext
in interface javax.naming.spi.InitialContextFactory
Copyright © 1997, 2011, Oracle. All rights reserved.