java.lang.Object
com.ibm.dtfj.javacore.builder.javacore.BuilderContainer
Contains a collection of factories. Each factory is identified by a unique
id. Factories with the same ID are not allowed.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(AbstractBuilderComponent component) If factory component already exists, it will overwrite the existing entry in the container.findComponent
(String id) getList()
-
Constructor Details
-
BuilderContainer
public BuilderContainer()
-
-
Method Details
-
getList
- Returns:
- iterator to the entire list of factories. Is never null.
-
findComponent
- Parameters:
id
- unique id to lookup a particular factory in the container.- Returns:
- found factory, or null if not found
-
add
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
- Returns:
- the last added factory component. May be null if no factory components have been added yet.
-