jade.core
Interface Sink


public interface Sink

The Sink interface has to be implemented by all the components that process JADE kernel-level commands in an exclusive and terminal way. For each kind of vertical command, there must be at most one sink that is registered for that command. Instead, many command filters can be applied to a single command.

Author:
Giovanni Rimassa - FRAMeTech s.r.l.
See Also:
Filter

Field Summary
static boolean COMMAND_SOURCE
           
static boolean COMMAND_TARGET
           
 
Method Summary
 void consume(VerticalCommand cmd)
          Definitely consume a command object.
 

Field Detail

COMMAND_SOURCE

public static final boolean COMMAND_SOURCE
See Also:
Constant Field Values

COMMAND_TARGET

public static final boolean COMMAND_TARGET
See Also:
Constant Field Values
Method Detail

consume

public void consume(VerticalCommand cmd)
Definitely consume a command object. This method is invoked by the kernel when all incoming filters have been applied to the incoming vertical command.

Parameters:
cmd - A VerticalCommand describing what operation has been requested from previous layers (that can be the actual prime source of the command or members of the filter chain).


JADE