org.gcube.common.ghn.service.handlers
Interface Pipeline<T extends ServiceHandler<T>>

Type Parameters:
T - the type of the registered handlers
All Known Implementing Classes:
DefaultPipeline

public interface Pipeline<T extends ServiceHandler<T>>

An ordered list ServiceHandlers registered to handle ServiceEvents of the same type.

Clients dispatch events to pipelines and handlers are responsible to forward them to subsequent handlers.

Author:
Fabio Simeoni
See Also:
ServiceHandler, ServiceEvent

Method Summary
 void forward(ServiceEvent<T> e)
          Forwards an event a step further through the pipeline.
 List<T> handlers()
          Returns the handlers currently in the pipeline.
 

Method Detail

handlers

List<T> handlers()
Returns the handlers currently in the pipeline.

Returns:
the handlers

forward

void forward(ServiceEvent<T> e)
Forwards an event a step further through the pipeline.

Parameters:
e - the event


Copyright © 2012. All Rights Reserved.