Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Controller
11g Release 1 (11.1.1)

E10651-03


oracle.adf.controller.config
Class ControllerConfig

java.lang.Object
  extended by oracle.adf.controller.config.ControllerConfig


public class ControllerConfig
extends java.lang.Object

Provides access to the initialization parameters for ADF Controller.
The parameters are specified inside adf-config.xml.
For example

 <adf-config xmlns:xsi="www.w3.org/2001/XMLSchema-instance"
 &nbsp  xsi:schemaLocation=" http://xmlns.oracle.com/adf/config
 &nbsp  ../../../../../bc4jrt/src/oracle/adf/share/config/schema/config.xsd"
 &nbsp  xmlns="http://xmlns.oracle.com/adf/config"
 &nbsp  xmlns:mdsC="http://xmlns.oracle.com/adf/mds/config"
 &nbsp  xmlns:adfc="http://xmlns.oracle.com/adf/controller/config"
 &nbsp  xmlns:sec="http://xmlns.oracle.com/adf/security/config">
 &nbsp  <adfc:adf-controller-config>
 &nbsp    <adfc:savepoint-manager>DATABASE</adfc:savepoint-manager>
 &nbsp    <adfc:savepoint-datasource>jdbc/Connection1DS</adfc:savepoint-datasource>
 &nbsp    <adfc:enable-implicit-savepoints>true</adfc:enable-implicit-savepoints>
 &nbsp    <adfc:max-snapshot-history>50</adfc:max-snapshot-history>
 &nbsp    <adfc:lifecycle>
 &nbsp      <adfc:phase-listener>
 &nbsp        <adfc:listener-id>Dave</adfc:listener-id>
 &nbsp        <adfc:class>test.myPhaseListener</adfc:class>
 &nbsp        <adfc:after-id-set>
 &nbsp          <adfc:listener-id>Adam</adfc:listener-id>
 &nbsp          <adfc:listener-id>Blake</adfc:listener-id>
 &nbsp        </adfc:after-id-set>
 &nbsp        <adfc:before-id-set>
 &nbsp          <adfc:listener-id>Ted</adfc:listener-id>
 &nbsp          <adfc:listener-id>Chris</adfc:listener-id>
 &nbsp          <adfc:listener-id>Pete</adfc:listener-id>
 &nbsp        </adfc:before-id-set>
 &nbsp      </adfc:phase-listener>
 &nbsp    </adfc:lifecycle>
 &nbsp  </adfc:adf-controller-config>
 </adf-config>
 

For a complete list of parameters, see ControllerProperty


Field Summary
static java.lang.String CONTROLLER_CONFIG_ELEMENT
          The element name for controller configuration.
static java.lang.String CONTROLLER_CONFIG_NAMESPACE
          The namespace used by adf controller config.

 

Method Summary
static java.util.Map getCurrent()
          Deprecated. use getCurrent(boolean)
static java.lang.String getCurrentProperty(ControllerProperty property)
           
static java.lang.Object getDefaultedProperty(ControllerProperty property, java.lang.String value)
           
static java.util.Map<java.lang.String,PhaseListenerDefinition> getPhaseListeners()
          Deprecated. 
static java.lang.Object getProperty(ControllerProperty property)
          Gets the current value of the specified paramter.

 

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

 

Field Detail

CONTROLLER_CONFIG_NAMESPACE

public static final java.lang.String CONTROLLER_CONFIG_NAMESPACE
The namespace used by adf controller config.
See Also:
Constant Field Values

CONTROLLER_CONFIG_ELEMENT

public static final java.lang.String CONTROLLER_CONFIG_ELEMENT
The element name for controller configuration.
See Also:
Constant Field Values

Method Detail

getCurrent

public static java.util.Map getCurrent()
Deprecated. use getCurrent(boolean)
Gets the current ControllerConfig from the current ADFContext.
Returns:
The map of controller properties.

getProperty

public static java.lang.Object getProperty(ControllerProperty property)
Gets the current value of the specified paramter. If no value is specified, a default value is returned. Values are cached according to their ChangePolicy.
Parameters:
property - the property
Returns:
the value

getDefaultedProperty

public static java.lang.Object getDefaultedProperty(ControllerProperty property,
                                                    java.lang.String value)

getPhaseListeners

@Deprecated
public static java.util.Map<java.lang.String,PhaseListenerDefinition> getPhaseListeners()
Deprecated. 

getCurrentProperty

public static java.lang.String getCurrentProperty(ControllerProperty property)
Parameters:
property - the latest value of the property as specified in adf-config.xml. This value can be different than the value originally specified if MBeans were used to modify the value.
Returns:

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Controller
11g Release 1 (11.1.1)

E10651-03


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