| java.lang.Object org.jaffa.tools.patternmetaengine.ComponentRegistry
ComponentRegistry | public class ComponentRegistry (Code) | | This class holds all the generated components (ie their builders). It is used
to keep a registry of all components across the multiple phases of the build.
It also provides some convienance methods for accessing components from the
repository
version: 1.0 author: PaulE |
addComponent | public void addComponent(IBuilder comp)(Code) | | Add a new component (IBuilder) to the registry
Parameters: comp - New component to be added |
findComponent | public IBuilder findComponent(String domain, String type)(Code) | | Find a given component. Assumes there is only one instance of
a given component type per domain object. If multiple are found
the first one is returned.
Parameters: domain - full class name (including package) of domain object Parameters: type - Type of component (Finder, Viewer, etc) the located component, null of no component is found |
iterateByDomain | public Iterator iterateByDomain(String domain)(Code) | | Iterator for all components in registry for a given
domain object
Parameters: domain - full class name (including package) of domain object a interator of IBuiler objects |
iterateByType | public Iterator iterateByType(String type)(Code) | | Iterator for all components in registry of a given type
Parameters: type - Type of component (Finder, Viewer, etc) a interator of IBuiler objects |
iterator | public Iterator iterator()(Code) | | Iterator for all components in registry
a interator of IBuiler objects |
|
|