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

Type Parameters:
T - the (recursive) type of the handler.
All Known Implementing Classes:
AbstractHandler, LifetimeHandler, LifetimeHandlerAdapter.UnavailableHandler, PublishingHandler, RequestHandler, RequestHandlerAdapter.UnavailableHandler, ScopeHandler

public interface ServiceHandler<T extends ServiceHandler<T>>

Registers in Pipelines to handle ServiceEvents about a managed app.

Handlers may or may not propagate the events to the other handlers registered in the same pipeline Pipeline.forward(ServiceEvent).

Author:
Fabio Simeoni
See Also:
ServiceEvent, Pipeline

Method Summary
 String name()
          Returns the name of the handler.
 void onEvent(Pipeline<T> pipeline, ServiceEvent<T> e)
          Processes a given event.
 

Method Detail

name

String name()
Returns the name of the handler.

Returns:
the name

onEvent

void onEvent(Pipeline<T> pipeline,
             ServiceEvent<T> e)
Processes a given event.

Parameters:
pipeline - the pipeline in which the handler is registered.
e - the event


Copyright © 2013. All Rights Reserved.