Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

oracle.adf.model.adapter
Class DataControlFactoryImpl

java.lang.Object
  extended by oracle.adf.model.adapter.DataControlFactoryImpl
All Implemented Interfaces:
DataControlFactory

public class DataControlFactoryImpl
extends java.lang.Object
implements DataControlFactory

Factory class to create a data control instance from the XML metadata. ADF runtime calls this factory to create the data control.

See Also:
DataControl

Field Summary
static java.lang.String DEFINITION
          Tag for the definition file name.
static java.lang.String ID
          Tag to define data control's name.
 
Fields inherited from interface oracle.adf.model.DataControlFactory
APP_PARAM_COOKIE_PROPERTIES, APP_PARAM_ENV_INFO, APP_PARAM_HTTP_SESSION, APP_PARAM_POOL_PROPERTIES, APP_PARAM_REQUEST_CONTEXT, APP_PARAMS_BINDING_CONTEXT
 
Constructor Summary
DataControlFactoryImpl()
          Creates a blank factory class.
 
Method Summary
protected  DataControl createDataControl(java.lang.String name, java.lang.String def, java.lang.Object dcInstance, AbstractDefinition dcDef)
          Override this method to supply custom adapter-based data control
 DataControl createSession(BindingContext ctx, Node node, java.util.Map appParams)
          Creates a data control.
 DataControl createSession(BindingContext ctx, java.lang.String sName, java.util.Map appParams, java.util.Map cpxMetaData)
          Creates a data control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
Tag to define data control's name.

See Also:
Constant Field Values

DEFINITION

public static final java.lang.String DEFINITION
Tag for the definition file name.

See Also:
Constant Field Values
Constructor Detail

DataControlFactoryImpl

public DataControlFactoryImpl()
Creates a blank factory class.

Method Detail

createSession

public DataControl createSession(BindingContext ctx,
                                 Node node,
                                 java.util.Map appParams)
Creates a data control.

Incase of HttpSession, add APP_PARAM properties into applicationParams before calling createSession. For types for these three properties see HttpContainer.findSessionCookie().

Specified by:
createSession in interface DataControlFactory
Parameters:
appParams - Application parameters.
ctx - Binding context.
node - Definition node.
Returns:
Created data control object.

createSession

public DataControl createSession(BindingContext ctx,
                                 java.lang.String sName,
                                 java.util.Map appParams,
                                 java.util.Map cpxMetaData)
Creates a data control.

Incase of HttpSession, add APP_PARAM properties into applicationParams before calling createSession. For types for these three properties see HttpContainer.findSessionCookie().

Specified by:
createSession in interface DataControlFactory
Parameters:
ctx - Binding context.
sName - Name of the data control.
appParams - Application parameters.
cpxMetaData - Contains the metadata for the data control.
Returns:
Created data control object.

createDataControl

protected DataControl createDataControl(java.lang.String name,
                                        java.lang.String def,
                                        java.lang.Object dcInstance,
                                        AbstractDefinition dcDef)
Override this method to supply custom adapter-based data control


Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

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