|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.iqual.chaplin.AbstractContextHandler
public abstract class AbstractContextHandler
This abstract class makes a context handler implementation easier by translating from the raw language of messages to more concrete language containing concepts like property and methods.
| Constructor Summary | |
|---|---|
AbstractContextHandler()
|
|
| Method Summary | |
|---|---|
protected abstract boolean |
canInvoke(Object source,
String methodName,
Class[] methodDesc)
Request for possibility of method invocation. |
protected abstract Object |
get(String propertyName,
Class fieldType,
Object instance)
Request for value of a property. |
protected abstract boolean |
hasValue(String propertyName,
Class fieldType)
Request for existence of a property. |
protected abstract boolean |
invoke(Object source,
String methodName,
Class[] methodDesc)
Request for the method invocation. |
void |
onMessageReceived(Message message,
MessageReplies replies,
MessageReceiversChain chain)
Called when a request is made. |
protected abstract void |
set(String propertyName,
Class fieldType,
Object value,
Object instance)
Request for setting the value of a property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractContextHandler()
| Method Detail |
|---|
public void onMessageReceived(Message message,
MessageReplies replies,
MessageReceiversChain chain)
throws Throwable
MessageReceiverprocess 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.
onMessageReceived in interface MessageReceiverThrowable
protected abstract boolean hasValue(String propertyName,
Class fieldType)
throws Exception
Exception
protected abstract Object get(String propertyName,
Class fieldType,
Object instance)
throws Exception
Exception
protected abstract void set(String propertyName,
Class fieldType,
Object value,
Object instance)
throws Exception
Exception
protected abstract boolean canInvoke(Object source,
String methodName,
Class[] methodDesc)
throws Exception
Exception
protected abstract boolean invoke(Object source,
String methodName,
Class[] methodDesc)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||