org.iqual.chaplin
Class NamedComponentHandler

java.lang.Object
  extended by org.iqual.chaplin.NamedComponentHandler
All Implemented Interfaces:
Injected, FilterableMessageReceiver, MessageReceiver

public class NamedComponentHandler
extends Object
implements FilterableMessageReceiver, Injected

Since:
Aug 3, 2009 8:19:13 PM
Author:
Zbynek Slajchrt

Constructor Summary
NamedComponentHandler(Object component, String name, Class context)
           
 
Method Summary
 Object $$$$$$()
           
 void $$$$$$(Object context)
           
 boolean isMessageAcceptable(Message message)
           
 void onMessageReceived(Message message, MessageReplies replies, MessageReceiversChain chain)
          Called when a request is made.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedComponentHandler

public NamedComponentHandler(Object component,
                             String name,
                             Class context)
Method Detail

isMessageAcceptable

public boolean isMessageAcceptable(Message message)
Specified by:
isMessageAcceptable in interface FilterableMessageReceiver

onMessageReceived

public void onMessageReceived(Message message,
                              MessageReplies replies,
                              MessageReceiversChain chain)
                       throws Throwable
Description copied from interface: MessageReceiver
Called when a request is made. The receiver must call the chain's process method so that the subsequent receivers could be called. The receiver may manipulate with the arguments passed to that method. For example it may change the message that will be processed by the subsequent receivers in the chain or change the results of the subsequent message processing.

Specified by:
onMessageReceived in interface MessageReceiver
Throws:
Throwable

$$$$$$

public Object $$$$$$()
Specified by:
$$$$$$ in interface Injected

$$$$$$

public void $$$$$$(Object context)
Specified by:
$$$$$$ in interface Injected


Copyright © 2009 iquality.org. All Rights Reserved.