net.sf.seide.routing
Interface RoutingHandler


@Beta
public interface RoutingHandler


Method Summary
 void finish(Event source, EventHandler<?> eventHandler, RoutingOutcome out)
           
 RoutingHandler getParent()
           
 RoutingOutcome handle(Event source, EventHandler<?> eventHandler, RoutingOutcome out)
           
 Event register(Event source, EventHandler<?> eventHandler)
          Registers a source Event and return the handled version of it.
 void start(Event source, EventHandler<?> eventHandler)
          Registers a source Event, any implementation should take into account the tracking of this source events to route the message.
Fired just before starting the event.
 

Method Detail

start

void start(Event source,
           EventHandler<?> eventHandler)
Registers a source Event, any implementation should take into account the tracking of this source events to route the message.
Fired just before starting the event.

Parameters:
source -

register

Event register(Event source,
               EventHandler<?> eventHandler)
Registers a source Event and return the handled version of it. The instance returned is which will be used for further processing, not the original.

Parameters:
source -
eventHandler -

handle

RoutingOutcome handle(Event source,
                      EventHandler<?> eventHandler,
                      RoutingOutcome out)
Parameters:
source -
eventHandler -
out -
Returns:

finish

void finish(Event source,
            EventHandler<?> eventHandler,
            RoutingOutcome out)
Parameters:
source -
eventHandler -
out -

getParent

RoutingHandler getParent()
Returns:
the parent RoutingHandler if applies.


Copyright © 2011. All Rights Reserved.