Echo
ComponentFactory
Class Hierarchy:

Factory to create new instances of arbitrary components. This object is used to instantiate new components during XML de-serialization.

Class Method Summary
Public newInstance()
Creates a new instance of an arbitrary component.
Public getConstructor()
Returns the component constructor for the specified type.
Public getSuperType()
Determines the super type of a component, based on the type name of the component.
Public registerType()
Registers a type name to a specific constructor.

Class Method Detail
newInstance
Creates a new instance of an arbitrary component.
Parameters:
typeName (String) - the type name of the component
renderId (String) - the component render id
Returns:
(Echo.Component) a newly instantiated component

getConstructor
Returns the component constructor for the specified type.
Parameters:
typeName (String) - the type name
Returns:
(Function) the component constructor

getSuperType
Determines the super type of a component, based on the type name of the component.
Parameters:
typeName (String) - the component type
Returns:
(String) the parent component type

registerType
Registers a type name to a specific constructor.
Parameters:
typeName - the type name
typeConstructor - the constructor