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

E10653-05

oracle.adfinternal.model.adapter.generic
Class DCStructureProviderFactory

java.lang.Object
  extended by oracle.adfinternal.model.adapter.generic.DCStructureProviderFactory

public final class DCStructureProviderFactory
extends java.lang.Object

Singleton class that acts as a factory for MetaDataProviders for the given environment(jdev, worplace, etc). This singleton must have the correct DCDefinitionProviderBuilder installed at designtime environment initialization or prior to DataControlStructureProvider construction. the main benefit provided by this class is a level of indirection between runtime and designtime components of the ADF adapter based framework. The TopLink AbstractAdapter and AbstractDefinition implementations need not know about the designtime details (UI and meta data creation) of the environment to create the DataControlStructureProvider. Also a level of abstraction is provided such that multiple persistence technology flavors (OR, EJB, XML) can be incorporated in via their own DataControlStructure and asssociated provider.

See Also:
DataControlStructureProvider, DataControlStructure

Method Summary
 void addProviderBuilder(java.lang.String builderType, DataControlStructureProvider provider)
          To be called during environment initialization or prior to data control creation.
 DataControlStructureProvider getProvider(java.lang.String type)
          Creates a DataControlStructureProvider based on the DCDefinitionProviderBuilder given by the environment.
static DCStructureProviderFactory instance()
          Singleton method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static DCStructureProviderFactory instance()
Singleton method.


getProvider

public DataControlStructureProvider getProvider(java.lang.String type)
Creates a DataControlStructureProvider based on the DCDefinitionProviderBuilder given by the environment.


addProviderBuilder

public void addProviderBuilder(java.lang.String builderType,
                               DataControlStructureProvider provider)
To be called during environment initialization or prior to data control creation. This method allows for each technology type to register their environment specifc mechanism for building the DataControlStructureProvider.


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.