Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.7.0)

E10686-08

oracle.adf.share.services.jndi
Class DescriptorFactory

java.lang.Object
  extended by 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"


Constructor Summary
DescriptorFactory()
           
 
Method Summary
 javax.naming.Context getInitialContext(java.util.Hashtable<?,?> env)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescriptorFactory

public DescriptorFactory()
Method Detail

getInitialContext

public javax.naming.Context getInitialContext(java.util.Hashtable<?,?> env)
Specified by:
getInitialContext in interface javax.naming.spi.InitialContextFactory

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.7.0)

E10686-08

Copyright © 1997, 2013, Oracle. All rights reserved.