Package org.frankframework.collection
Class Collection<C extends ICollector<P>,P>
java.lang.Object
org.frankframework.collection.Collection<C,P>
- Type Parameters:
C- Collector to use, which creates the partsP- Parts to be added to each collection
- All Implemented Interfaces:
AutoCloseable,NameAware
public class Collection<C extends ICollector<P>,P>
extends Object
implements AutoCloseable, NameAware
Aggregator which handles the collection of
collector parts.
Ensures they are closed if required and 'builds' the collection.- Author:
- Niels Meijer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Message input, PipeLineSession session, ParameterValueList pvl) build()closes the collectorvoidclose()toString()
-
Constructor Details
-
Collection
-
-
Method Details
-
add
public void add(Message input, PipeLineSession session, ParameterValueList pvl) throws CollectionException - Throws:
CollectionException
-
build
closes the collector- Throws:
CollectionException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
toString
-