Skip navigation links

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

E10653-03


oracle.adfinternal.model.adapter.generic
Class BeanAbstractAdapter

java.lang.Object
  extended by oracle.adf.model.adapter.AbstractAdapter
      extended by oracle.adfinternal.model.adapter.generic.BeanAbstractAdapter

Direct Known Subclasses:
BeanAdapter, EjbAdapter, TopLinkAdapter

public abstract class BeanAbstractAdapter
extends AbstractAdapter

DataControlStructure driven AbstractAdapter implementation. This class handles the AbstractDefinition creation lifecycle and initialization based on the registered DataControlStructureProvider for the given adapter. Implementors of this class must implement the getDefinition(DataControlStructure) method providing the concrete AbstractDefinition as well as the getProviderType() method indicating the DataControlStructureProvider registered with the environment for this Adapter.

See Also:
DataControlStructureProvider, DCStructureProviderFactory, DataControlStructure

Constructor Summary
BeanAbstractAdapter()
           

 

Method Summary
 boolean canCreateDataControl(java.lang.Object source)
          Defers to the DataControlStructureProvider indicated by getProviderType() to determine if this Adapter can create the AbstractDefinition for the source object.
 void configureClientProject(java.lang.Object sourceObj, DTContext ctx)
          Hook to allow specific adapter implementations to configure a client project.
 AbstractDefinition getDefinition()
          Constructs and returns the AbstractDefinition.
protected abstract  AbstractDefinition getDefinition(DataControlStructure dcStructure)
          Implementing classes must define this method to return the correct AbstractDefinition instance based on the given DataControlStructure.
protected abstract  java.lang.String getProviderType()
          Indicates the DataControlStructureProvider type registered with the DCStructureProviderFactory to call during DataControlStructure creation.
protected  DataControlStructureProvider getStructureProvider()
          Convenience method for obtaining the DataControlStructureProvider.
 void initialize(java.lang.Object sourceObj, DTContext ctx)
          Caches objects passed in during initialization.
 boolean invokeUI()
          Invokes the DataControlStructureProvider indicated by the provider type to do environment specific initialization of the DataControlStructure used in construction of the AbstractDefinition.

 

Methods inherited from class oracle.adf.model.adapter.AbstractAdapter
getPageDefinitionListener

 

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

 

Constructor Detail

BeanAbstractAdapter

public BeanAbstractAdapter()

Method Detail

initialize

public final void initialize(java.lang.Object sourceObj,
                             DTContext ctx)
Caches objects passed in during initialization.
Specified by:
initialize in class AbstractAdapter
Parameters:
sourceObj - Object that contains information about the data source that will be used to define the data control.
ctx - Current design time context.

getDefinition

public final AbstractDefinition getDefinition()
Constructs and returns the AbstractDefinition.
Specified by:
getDefinition in class AbstractAdapter

getDefinition

protected abstract AbstractDefinition getDefinition(DataControlStructure dcStructure)
Implementing classes must define this method to return the correct AbstractDefinition instance based on the given DataControlStructure.

getProviderType

protected abstract java.lang.String getProviderType()
Indicates the DataControlStructureProvider type registered with the DCStructureProviderFactory to call during DataControlStructure creation.

invokeUI

public boolean invokeUI()
Invokes the DataControlStructureProvider indicated by the provider type to do environment specific initialization of the DataControlStructure used in construction of the AbstractDefinition.
Overrides:
invokeUI in class AbstractAdapter
Returns:
false if the user cancels the operation. The default retrun value is true.

canCreateDataControl

public boolean canCreateDataControl(java.lang.Object source)
Defers to the DataControlStructureProvider indicated by getProviderType() to determine if this Adapter can create the AbstractDefinition for the source object.
Overrides:
canCreateDataControl in class AbstractAdapter
Returns:
true if it can create a data control from the source.

getStructureProvider

protected DataControlStructureProvider getStructureProvider()
Convenience method for obtaining the DataControlStructureProvider.

configureClientProject

public void configureClientProject(java.lang.Object sourceObj,
                                   DTContext ctx)
Description copied from class: AbstractAdapter
Hook to allow specific adapter implementations to configure a client project.
Overrides:
configureClientProject in class AbstractAdapter
Parameters:
sourceObj - Object that contains information about the data source that will be used to define the data control.
ctx - Current design time context.

Skip navigation links

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

E10653-03


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