Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.3.0)

E17486-04


oracle.adf.share.config
Class ADFConfigFactory

java.lang.Object
  extended by oracle.adf.share.config.ADFConfigFactory

Direct Known Subclasses:
MDSConfigFactory

public class ADFConfigFactory
extends java.lang.Object

The main factory class for adf-config.xml file. The methods expose various overloads to find or create an ADFConfig object.


Constructor Summary
ADFConfigFactory()
           

 

Method Summary
static void cleanUpApplicationCaches(java.lang.ClassLoader appClassLoader)
           
static void cleanUpApplicationState(java.lang.ClassLoader appClassLoader)
           
static void clearAdfConfigCaches(ADFConfigEx adfConfig)
           
protected  ADFConfigImpl createApplication(java.lang.ClassLoader targetCL, java.lang.String resourceName)
           
protected  ADFConfigImpl createDefaultConfig()
          If we didn't find an adf-config.xml you will get the default implementation.
static void dumpApplicationsMap(java.util.Map<java.lang.Object,ADFConfigEx> curApplications)
           
static ADFConfigEx findADFConfig(java.lang.String namedConfig)
          This method is used to retrieve the ADFConfig object for which the namedADFContext name is provided.
static ADFConfigEx findOrCreateADFConfig()
          This method returns the ADFConfig object based on the META-INF/adf-config.xml file if one exists or the default implementation if no such file exists.
static ADFConfigEx findOrCreateADFConfig(boolean reparse)
          This method forces the META-INF/adf-config.xml file for this application to be reparsed if the reparse value is true.
static ADFConfigEx findOrCreateADFConfig(java.lang.String resourceName)
           
static ADFConfigEx findOrCreateADFConfig(java.lang.String name, java.net.URL adfConfigUrl)
          This method finds or creates if not found the ADFConfig object associated with the particular adf-config.xml file as specified by the URL.
static ADFConfigEx findOrCreateADFConfig(java.lang.String name, java.net.URL adfConfigUrl, java.lang.Class configClass)
          This method finds or creates if not found the ADFConfig object associated with the particular adf-config.xml file as specified by the URL.
static void unregisterNamedConfig(java.lang.String namedConfig)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ADFConfigFactory

public ADFConfigFactory()

Method Detail

findOrCreateADFConfig

public static ADFConfigEx findOrCreateADFConfig()
This method returns the ADFConfig object based on the META-INF/adf-config.xml file if one exists or the default implementation if no such file exists.
Returns:
The ADFConfig object for this application.

findOrCreateADFConfig

public static ADFConfigEx findOrCreateADFConfig(boolean reparse)
This method forces the META-INF/adf-config.xml file for this application to be reparsed if the reparse value is true. This is for internal use only and is used by the ADFConfig MBean implementation to read the changed config on disk.
Parameters:
reparse - If true forces the file contents to be reparsed.
Returns:
The ADFConfig object for this application.
For internal use only. Application developers should not use this
use only

findOrCreateADFConfig

public static ADFConfigEx findOrCreateADFConfig(java.lang.String resourceName)

createApplication

protected ADFConfigImpl createApplication(java.lang.ClassLoader targetCL,
                                          java.lang.String resourceName)

createDefaultConfig

protected ADFConfigImpl createDefaultConfig()
If we didn't find an adf-config.xml you will get the default implementation. Moved this to a protected method so it could be overriden by the subclass for MDS support
Returns:

findADFConfig

public static ADFConfigEx findADFConfig(java.lang.String namedConfig)
This method is used to retrieve the ADFConfig object for which the namedADFContext name is provided.
Parameters:
namedConfig - The name of the NamedADFContext
Returns:
ADFConfigEx object if it exists, or null if it doesn't

findOrCreateADFConfig

public static ADFConfigEx findOrCreateADFConfig(java.lang.String name,
                                                java.net.URL adfConfigUrl)
This method finds or creates if not found the ADFConfig object associated with the particular adf-config.xml file as specified by the URL.
Parameters:
name - - the name of the NamedADFContext associated with this file
adfConfigUrl - - the URL of the adf-config.xml file
Returns:
- ADFConfigEx object

findOrCreateADFConfig

public static ADFConfigEx findOrCreateADFConfig(java.lang.String name,
                                                java.net.URL adfConfigUrl,
                                                java.lang.Class configClass)
This method finds or creates if not found the ADFConfig object associated with the particular adf-config.xml file as specified by the URL.
Parameters:
name - - the name of the NamedADFContext associated with this file
adfConfigUrl - - the URL of the adf-config.xml file
configClass - - concrete class to be used
Returns:
- ADFConfigEx object

unregisterNamedConfig

public static void unregisterNamedConfig(java.lang.String namedConfig)

cleanUpApplicationState

public static void cleanUpApplicationState(java.lang.ClassLoader appClassLoader)

cleanUpApplicationCaches

public static void cleanUpApplicationCaches(java.lang.ClassLoader appClassLoader)

dumpApplicationsMap

public static void dumpApplicationsMap(java.util.Map<java.lang.Object,ADFConfigEx> curApplications)

clearAdfConfigCaches

public static void clearAdfConfigCaches(ADFConfigEx adfConfig)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.3.0)

E17486-04


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