| 
JSF-Spring | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ComponentFactory
Factory for managing UIComponents. Used by
 ApplicationImpl.
| Method Summary | |
|---|---|
 void | 
addComponent(Application application,
             java.lang.String componentType,
             java.lang.String componentClass)
Register a new mapping of component type to the name of the corresponding UIComponent class. | 
 UIComponent | 
createComponent(Application application,
                java.lang.String componentType)
Instantiate and return a new UIComponent instance of the class
 specified by a previous call to addComponent() for the
 specified component type. | 
 UIComponent | 
createComponent(Application application,
                ValueBinding componentBinding,
                FacesContext context,
                java.lang.String componentType)
Call the getValue() method on the specified
 ValueBinding. | 
 java.util.Iterator | 
getComponentTypes(Application application)
Return an Iterator over the set of currently defined
 component types for this Application. | 
| Method Detail | 
|---|
void addComponent(Application application,
                  java.lang.String componentType,
                  java.lang.String componentClass)
UIComponent class. This allows subsequent calls to
 createComponent() to serve as a factory for
 UIComponent instances.
application - the original Application of the underlying
            JSF implementationcomponentType - The component type to be registeredcomponentClass - The fully qualified class name of the corresponding
            UIComponent implementation
java.lang.NullPointerException - if componentType or
                componentClass is null
UIComponent createComponent(Application application,
                            java.lang.String componentType)
UIComponent instance of the class
 specified by a previous call to addComponent() for the
 specified component type.
application - the original Application of the underlying
            JSF implementationcomponentType - The component type for which to create and return a new
            UIComponent instance
FacesException - if a UIComponent of the specified type cannot be
                created
java.lang.NullPointerException - if componentType is null
UIComponent createComponent(Application application,
                            ValueBinding componentBinding,
                            FacesContext context,
                            java.lang.String componentType)
getValue() method on the specified
 ValueBinding. If it returns a UIComponent instance,
 return it as the value of this method. If it does not, instantiate a new
 UIComponent instance of the specified component type, pass the
 new component to the setValue() method of the specified
 ValueBinding, and return it.
application - the original Application of the underlying
            JSF implementationcomponentBinding - ValueBinding representing a component value binding
            expression (typically specified by the component
            attribute of a custom tag)context - FacesContext for the current requestcomponentType - Component type to create if the ValueBinding does not
            return a component instance
FacesException - if a UIComponent cannot be created
java.lang.NullPointerException - if any parameter is nulljava.util.Iterator getComponentTypes(Application application)
Iterator over the set of currently defined
 component types for this Application.
application - the original Application of the underlying
            JSF implementation
  | 
JSF-Spring | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||