F- the component factory type
public class ComponentCollector<F extends ComponentFactory> extends Component
A component that collects all component factory services of a given type and creates an instance of each.
|Constructor and Description|
Utility constructor that uses each factory to create a single instance, using an empty map as properties.
Creates a new collector that collects the factories of the given type and uses each to create an instance with this component’s channel.
channel, component, defaultCriterion, isEligibleFor, setName
activeEventPipeline, addHandler, attach, children, componentPath, componentVertex, detach, fire, initComponentsHandlers, iterator, name, newEventPipeline, newEventPipeline, newSyncEventPipeline, parent, registerAsGenerator, root, toString, unregisterAsGenerator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public ComponentCollector(Class<F> factoryClass, Channel componentChannel, Function<String,List<Map<Object,Object>>> matcher)
Creates a new collector that collects the factories of the given
type and uses each to create an instance with this component’s
channel. Before the instance is created, the
function is invoked with the name of the class of the component
to be created as argument. The list of maps returned is
used to create components, passing each element in the list
as parameter to
factoryClass- the factory class
componentChannel- this component’s channel
matcher- the matcher function