public class ADFConfigImpl extends java.lang.Object implements ADFConfigEx, ADFConfigLifecycle
ADF configuration object is initilzed with ADF context object.
The adf configuration file looks like
<?xml version="1.0" encoding="windows-1252" ?><schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:adf=” http://xmlns.oracle.com/adf/config”
targetNamespace="http://xmlns.oracle.com/adf/jndi/config"
xmlns:jndiC="http://xmlns.oracle.com/adf/jndi/config"
elementFormDefault="qualified">
<complexType name="PropertyType">
<attribute name="name" type="string"/>
<attribute name="value" type="string" />
</complexType>
<complexType name="ADFJndiConfigType">
<sequence>
<element name="contextEnv" type="jndiC:PropertyType" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="initialContextFactoryClass"
default="oracle.adf.share.jndi.InitialContextFactoryImpl"/>
<attribute name="backingStoreClass"
default="oracle.adf.share.jndi.ResourceBackingStore"/>
<attribute name="backingStoreURL" default="META-INF/connections.xml"/>
</complexType>
<element name="adf-jndi-config" type="jndiC:ADFJndiConfigType"
substitutionGroup="adf:adf-config-child"/>
</schema>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_applicationName |
protected java.util.Map<java.lang.String,java.lang.String> |
_callbackMap |
protected int |
_firstPassEnteredCount |
protected boolean |
_isNamedConfig |
protected java.lang.String |
_namedConfig |
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Object> |
_resourceReadList |
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,java.util.Map> |
_storedResults |
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,java.util.List<oracle.adf.share.config.ADFConfigImpl.ADFIntialParseResult>> |
_storeParsedElements |
protected java.net.URL |
_url |
static java.lang.String |
ADF_CONFIG_CHILD |
static java.lang.String |
CALLBACK_FILE |
protected java.util.Map<java.lang.Object,ADFScopeHelper> |
mScopeHelpers |
static java.lang.String |
NAMESPACE_ADF_MDS_CONFIG |
protected java.util.List<java.net.URL> |
propFiles |
ADFCONFIG_META_FILENAME, ADFCONFIG_MO_NAME, CONFIG_FILENAME, DEFAULT_CONFIGURATION, NAMESPACE, ROOT_ELEMENT_NAME
ADFSETTINGS_FILENAME, ADFSETTINGS_NAMESPACE, ADFSETTINGS_ROOT_ELEMENT_NAME
Constructor and Description |
---|
ADFConfigImpl(java.lang.String namedConfig,
java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
void |
addScopeListener(ADFScopeListener listener)
Adds a scope listener.
|
void |
clearCaches() |
protected void |
clearLocals() |
java.lang.String |
dumpAdfConfig() |
java.util.List |
getADFSessionOptions() |
java.lang.String |
getApplicationName() |
java.util.Map |
getCallBackMap() |
java.util.Map |
getConfigObject(java.lang.String namespace)
get the configuration object information stored for the provided namespace
|
java.util.Map |
getConfigObject(java.lang.String namespace,
boolean forceReparse)
get the config object information stored for the provided namespace
|
javax.naming.Context |
getConnectionsContext()
JNDI context containing the application connection
definitions.
|
java.util.List |
getDefCachePolicies() |
protected org.w3c.dom.Element |
getDocumentElement(java.io.InputStream is) |
java.lang.Object |
getId()
Unique identifier for this application
|
java.lang.Object |
getMDSInstance()
Gets the MDS instance configured for this application
|
java.lang.Object |
getMDSInstance(boolean bCreate)
Gets the MDS instance, but controls if it should be created via the parameter.
|
protected java.util.Map<java.lang.String,java.util.List<oracle.adf.share.config.ADFConfigImpl.ADFIntialParseResult>> |
getParsedElements() |
javax.naming.Context |
getSecurityContext()
Security context containing the jaas configuration.
|
java.util.List |
getSessionDefPackages() |
java.util.List |
getSiteDefPackages() |
protected void |
init()
Initilization function, which will load the adf config xml file, process
the configuration object.
|
protected void |
invokeMDSInstanceClearCache() |
protected boolean |
isMDSInstanceCached() |
protected void |
parseConfigFirstPass(java.io.InputStream is,
java.lang.String resource) |
protected void |
readConfig(java.lang.String namedConfig,
org.w3c.dom.Document doc,
java.net.URL url) |
protected void |
readConfig(java.lang.String namedConfig,
java.net.URL url) |
void |
releaseResources()
Releases resources allocated by the config
|
void |
removeScopeListener(ADFScopeListener listener)
Removes a scope listener.
|
protected void |
reset() |
void |
updateIfNeeded()
Called to give the config a place to see if the document has been updated
and needs to be processed again.
|
public static final java.lang.String CALLBACK_FILE
public static final java.lang.String ADF_CONFIG_CHILD
public static final java.lang.String NAMESPACE_ADF_MDS_CONFIG
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,java.util.Map> _storedResults
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,java.util.List<oracle.adf.share.config.ADFConfigImpl.ADFIntialParseResult>> _storeParsedElements
protected java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.Object> _resourceReadList
protected java.util.Map<java.lang.String,java.lang.String> _callbackMap
protected java.util.List<java.net.URL> propFiles
protected java.lang.String _applicationName
protected boolean _isNamedConfig
protected java.lang.String _namedConfig
protected java.net.URL _url
protected java.util.Map<java.lang.Object,ADFScopeHelper> mScopeHelpers
protected int _firstPassEnteredCount
public ADFConfigImpl(java.lang.String namedConfig, java.net.URL url)
public java.lang.String getApplicationName()
public java.lang.Object getId()
ADFConfig
public java.util.Map getCallBackMap()
protected void reset()
protected void init()
protected java.util.Map<java.lang.String,java.util.List<oracle.adf.share.config.ADFConfigImpl.ADFIntialParseResult>> getParsedElements()
protected void readConfig(java.lang.String namedConfig, java.net.URL url)
protected void readConfig(java.lang.String namedConfig, org.w3c.dom.Document doc, java.net.URL url)
protected org.w3c.dom.Element getDocumentElement(java.io.InputStream is)
protected void parseConfigFirstPass(java.io.InputStream is, java.lang.String resource)
public java.util.Map getConfigObject(java.lang.String namespace)
getConfigObject
in interface ADFSettings
namespace
- namespace for which configObject is to be returnedpublic java.util.Map getConfigObject(java.lang.String namespace, boolean forceReparse)
ADFConfigEx
getConfigObject
in interface ADFConfigEx
namespace
- namespace for which settings is to be returnedforceReparse
- this flag decides if the the ADFConfig needs to be
recomputed. The ADFConifg component callback parser will be called
invariably if truepublic java.lang.Object getMDSInstance()
ADFConfig
getMDSInstance
in interface ADFConfig
public java.lang.Object getMDSInstance(boolean bCreate)
ADFConfig
getMDSInstance
in interface ADFConfig
bCreate
- whether to create if one does not exists and if applicable.public java.util.List getSiteDefPackages()
getSiteDefPackages
in interface ADFConfig
public java.util.List getSessionDefPackages()
getSessionDefPackages
in interface ADFConfig
public java.util.List getDefCachePolicies()
getDefCachePolicies
in interface ADFConfig
public java.util.List getADFSessionOptions()
getADFSessionOptions
in interface ADFConfig
public javax.naming.Context getConnectionsContext() throws javax.naming.NamingException
ADFConfig
getConnectionsContext
in interface ADFConfig
javax.naming.NamingException
public javax.naming.Context getSecurityContext() throws javax.naming.NamingException
ADFConfig
getSecurityContext
in interface ADFConfig
javax.naming.NamingException
public void releaseResources()
ADFConfigEx
releaseResources
in interface ADFConfigEx
protected void clearLocals()
public void clearCaches()
clearCaches
in interface ADFConfigLifecycle
protected boolean isMDSInstanceCached()
protected void invokeMDSInstanceClearCache()
public void addScopeListener(ADFScopeListener listener)
ADFConfigEx
addScopeListener
in interface ADFConfigEx
public void removeScopeListener(ADFScopeListener listener)
ADFConfigEx
removeScopeListener
in interface ADFConfigEx
public void updateIfNeeded()
ADFConfigEx
updateIfNeeded
in interface ADFConfigEx
public java.lang.String dumpAdfConfig()