Oracle Fusion Middleware Design Time Java API Reference for Oracle ADF Faces and Data Visualization Components
11g Release 2 (11.1.2.1.0)

E18581-02

oracle.adf.dtrt.view
Class ContentFactory

java.lang.Object
  extended by oracle.adf.dtrt.view.ContentFactory

public class ContentFactory
extends java.lang.Object

Used to instantiate concrete Content objects with abstract interfaces...


Nested Class Summary
static class ContentFactory.FactoryException
           
 
Constructor Summary
ContentFactory()
           
 
Method Summary
 Content getContent(java.lang.String contentName)
           
 ContentUsage getContentUsage(java.lang.String elementName, java.lang.String namespaceURL, java.lang.Class[] paramTypes, java.lang.Object[] params)
          This method is intended for use by the impl of Content.createUsage and therefore shouldn't be called by application code.
static ContentFactory getInstance()
          Get an instance of the factory to interact with Content.
 void registerUsageCreator(java.lang.String elementName, java.lang.String namespaceURL, java.lang.String className)
          Usages can be registered for creation by factory methods using the elementName and namespaceURL of the view layer component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentFactory

public ContentFactory()
Method Detail

getInstance

public static ContentFactory getInstance()
Get an instance of the factory to interact with Content.

Returns:
an instance of the ContentFactory

getContent

public Content getContent(java.lang.String contentName)
Parameters:
contentName - The technology specific name of the content Ex: for JSF it would be the pageName (like "/main.jspx")
Returns:
The technology specific implementation

registerUsageCreator

public void registerUsageCreator(java.lang.String elementName,
                                 java.lang.String namespaceURL,
                                 java.lang.String className)
Usages can be registered for creation by factory methods using the elementName and namespaceURL of the view layer component. It must implement ContentUsage and any other view technology required interfaces, and must have a constructor with: oracle.adf.dtrt.view.common.ContentModelAccess; oracle.adf.view.faces.dt.Page; and String parameters.

Parameters:
elementName -
namespaceURL -
className -

getContentUsage

public ContentUsage getContentUsage(java.lang.String elementName,
                                    java.lang.String namespaceURL,
                                    java.lang.Class[] paramTypes,
                                    java.lang.Object[] params)
This method is intended for use by the impl of Content.createUsage and therefore shouldn't be called by application code.

Parameters:
elementName - the registered element name of the handler
namespaceURL - the registered namespace of the handler
paramTypes -
params -
Returns:
the factoried content usage doesn't implement ContentUsage or the type isn't registered.

Oracle Fusion Middleware Design Time Java API Reference for Oracle ADF Faces and Data Visualization Components
11g Release 2 (11.1.2.1.0)

E18581-02

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