- java.lang.Object
-
- com.ibm.dtfj.javacore.builder.javacore.BuilderContainer
-
public class BuilderContainer extends Object
Contains a collection of factories. Each factory is identified by a unique id. Factories with the same ID are not allowed.- See Also:
com.ibm.dtfj.javacore.builder
-
-
Constructor Summary
Constructors Constructor Description BuilderContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(AbstractBuilderComponent component)If factory component already exists, it will overwrite the existing entry in the container.AbstractBuilderComponentfindComponent(String id)AbstractBuilderComponentgetLastAdded()IteratorgetList()
-
-
-
Method Detail
-
getList
public Iterator getList()
- Returns:
- iterator to the entire list of factories. Is never null.
-
findComponent
public AbstractBuilderComponent findComponent(String id)
- Parameters:
id- unique id to lookup a particular factory in the container.- Returns:
- found factory, or null if not found
-
add
public boolean add(AbstractBuilderComponent component)
If factory component already exists, it will overwrite the existing entry in the container.- Parameters:
component- to be added.- Returns:
- true if added/overwritten, false otherwise
-
getLastAdded
public AbstractBuilderComponent getLastAdded()
- Returns:
- the last added factory component. May be null if no factory components have been added yet.
-
-