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

E10651-02

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"
    xsi:schemaLocation=" http://xmlns.oracle.com/adf/config
    ../../../../../bc4jrt/src/oracle/adf/share/config/schema/config.xsd"
    xmlns="http://xmlns.oracle.com/adf/config"
    xmlns:mdsC="http://xmlns.oracle.com/adf/mds/config"
    xmlns:adfc="http://xmlns.oracle.com/adf/controller/config"
    xmlns:sec="http://xmlns.oracle.com/adf/security/config">
    <adfc:adf-controller-config>
      <adfc:savepoint-manager>DATABASE</adfc:savepoint-manager>
      <adfc:savepoint-datasource>jdbc/Connection1DS</adfc:savepoint-datasource>
      <adfc:enable-implicit-savepoints>true</adfc:enable-implicit-savepoints>
      <adfc:max-snapshot-history>50</adfc:max-snapshot-history>
      <adfc:lifecycle>
        <adfc:phase-listener>
          <adfc:listener-id>Dave</adfc:listener-id>
          <adfc:class>test.myPhaseListener</adfc:class>
          <adfc:after-id-set>
            <adfc:listener-id>Adam</adfc:listener-id>
            <adfc:listener-id>Blake</adfc:listener-id>
          </adfc:after-id-set>
          <adfc:before-id-set>
            <adfc:listener-id>Ted</adfc:listener-id>
            <adfc:listener-id>Chris</adfc:listener-id>
            <adfc:listener-id>Pete</adfc:listener-id>
          </adfc:before-id-set>
        </adfc:phase-listener>
      </adfc:lifecycle>
    </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()
          Gets the current ControllerConfig from the current ADFContext.
static java.util.Map<java.lang.String,PhaseListenerDefinition> getPhaseListeners()
          Deprecated. Use ControllerSettings.getPhaseListeners()
static java.lang.String getProperty(ControllerProperty property)
          Gets the current value of the specified parameter.
 
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()
Gets the current ControllerConfig from the current ADFContext.

Returns:
The map of controller properties.

getProperty

public static java.lang.String getProperty(ControllerProperty property)
Gets the current value of the specified parameter.

Parameters:
property - The property
Returns:
the value

getPhaseListeners

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

Gets the set of Phase Listeners.

Returns:
Map of PhaseListeners

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

E10651-02

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