Package org.gcube.smartgears.handlers
Class Pipeline<E,H extends Handler<E>>
java.lang.Object
org.gcube.smartgears.handlers.Pipeline<E,H>
- Type Parameters:
E- the type of eventsH- the type of handlers
- Direct Known Subclasses:
ApplicationPipeline,ContainerPipeline
An ordered list
Handlers that handle related events.- Author:
- Fabio Simeoni
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Pipeline
Creates an instance with a given list of handlers.Modification to the input list do not affect the pipeline.
- Parameters:
handlers- the handlers
-
-
Method Details
-
handlers
Returns the handlers in this pipeline.Modification to the input list do not affect the pipeline.
- Returns:
- the handlers
-
forward
Forwards an event through the pipeline.- Parameters:
event- the event
-