net.sourceforge.smile.component
Class ComponentFactory

java.lang.Object
  extended bynet.sourceforge.smile.component.ComponentFactory

public class ComponentFactory
extends java.lang.Object

Author:
codehawk This class is responsible for keeping track of the registered component types in the system and also functions as a factory for creating components, based on component type.

Method Summary
 void addComponent(java.lang.String componentType, java.lang.Class componentClass)
          Registers a component type with the factory.
 javax.faces.component.UIComponent getComponent(java.lang.String componentType)
           
 java.util.Iterator getComponentClasses()
          Returns an iterator that contains all registered classes.
 java.util.Iterator getComponentTypes()
          Returns an iterator that contains all registeres component types.
static ComponentFactory getInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ComponentFactory getInstance()

addComponent

public void addComponent(java.lang.String componentType,
                         java.lang.Class componentClass)
Registers a component type with the factory.

Parameters:
componentType -
componentClass -

getComponent

public javax.faces.component.UIComponent getComponent(java.lang.String componentType)
                                               throws javax.faces.FacesException
Throws:
javax.faces.FacesException

getComponentClasses

public java.util.Iterator getComponentClasses()
Returns an iterator that contains all registered classes.

Returns:

getComponentTypes

public java.util.Iterator getComponentTypes()
Returns an iterator that contains all registeres component types.

Returns: