com.sun.rave.web.ui.component.util.event
Class OutputTypeManager

java.lang.Object
  extended by com.sun.rave.web.ui.component.util.event.OutputTypeManager

public class OutputTypeManager
extends java.lang.Object

This class provides the functionality for the OutputTypeManager. The OutputTypeManager manages the various OutputTypes that can be used. The OutputTypes are managed statically.


Field Summary
static java.lang.String OUTPUT_TYPE_MANAGER_KEY
           This constant defines the layout definition manager implementation key for initParams.
static java.lang.String REQUEST_ATTRIBUTE_TYPE
           
static java.lang.String SESSION_ATTRIBUTE_TYPE
           
 
Constructor Summary
protected OutputTypeManager()
          Constructor.
 
Method Summary
static OutputTypeManager getInstance()
           
static OutputTypeManager getManager(javax.faces.context.FacesContext context)
           This is a factory method for obtaining an OutputTypeManager instance.
static OutputTypeManager getManager(java.lang.String className)
          This method is a singleton factory method for obtaining an instance of a OutputTypeManager.
 OutputType getOutputType(java.lang.String name)
           This method retrieves an OutputType.
 void setOutputType(java.lang.String name, OutputType outputType)
           This method sets an OutputType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OUTPUT_TYPE_MANAGER_KEY

public static final java.lang.String OUTPUT_TYPE_MANAGER_KEY

This constant defines the layout definition manager implementation key for initParams. The value for this initParam should be the full class name of an OutputTypeManager. ("outputTypeManagerImpl")

See Also:
Constant Field Values

REQUEST_ATTRIBUTE_TYPE

public static final java.lang.String REQUEST_ATTRIBUTE_TYPE
See Also:
Constant Field Values

SESSION_ATTRIBUTE_TYPE

public static final java.lang.String SESSION_ATTRIBUTE_TYPE
See Also:
Constant Field Values
Constructor Detail

OutputTypeManager

protected OutputTypeManager()
Constructor.

Method Detail

getInstance

public static OutputTypeManager getInstance()

getManager

public static OutputTypeManager getManager(javax.faces.context.FacesContext context)

This is a factory method for obtaining an OutputTypeManager instance. This implementation uses the external context's initParams to look for the OutputTypeManager class. If it exists, the specified concrete OutputTypeManager class will be used. Otherwise, the default will be used -- which is an instance of this class. The initParam key is: OUTPUT_TYPE_MANAGER_KEY.

Parameters:
context - The FacesContext
See Also:
OUTPUT_TYPE_MANAGER_KEY

getManager

public static OutputTypeManager getManager(java.lang.String className)
This method is a singleton factory method for obtaining an instance of a OutputTypeManager. It is possible that multiple different implementations of OutputTypeManagers will be used within the same JVM. This is OK, the purpose of the OutputTypeManager is primarily performance. Someone may provide a different OutputTypeManager to locate OutputTypeManager's in a different way (XML, database, file, java code, etc.).


getOutputType

public OutputType getOutputType(java.lang.String name)

This method retrieves an OutputType.

Parameters:
name - The name of the OutputType.
Returns:
The requested OutputType.

setOutputType

public void setOutputType(java.lang.String name,
                          OutputType outputType)

This method sets an OutputType.

Parameters:
name - The name of the OutputType.
outputType - The OutputType.