org.openrdf.repository.object.composition.helpers
Class InvocationMessageContext

java.lang.Object
  extended by org.openrdf.repository.object.composition.helpers.InvocationMessageContext
All Implemented Interfaces:
InvocationHandler, Message

public class InvocationMessageContext
extends Object
implements InvocationHandler, Message

Implements the Message interface(s) through an InvocationHandler.

Author:
James Leigh

Constructor Summary
InvocationMessageContext(Object target, Class<?> messageType, Method method, Object[] parameters)
           
InvocationMessageContext(Object target, Method method, Object[] parameters)
           
 
Method Summary
 InvocationMessageContext appendInvocation(Object target, Method method)
           
 Object getFunctionalLiteralResponse()
          Single return value of this message.
 Object getFunctionalObjectResponse()
          Single return value of this message.
 Set<Object> getLiteralResponse()
          The return value of this message.
 Set<Object> getObjectResponse()
          The return value of this message.
 Object[] getParameters()
          The parameter values used in this message.
 Object getTarget()
          The receiver of this message.
 Object invoke(Object proxy, Method method, Object[] args)
           
 void proceed()
          Called to allow the message to proceed to the next implementation method.
 void setFunctionalLiteralResponse(Object functionalLiteralResponse)
          Single return value of this message.
 void setFunctionalObjectResponse(Object functionalObjectResponse)
          Single return value of this message.
 void setLiteralResponse(Set<?> literalResponse)
          The return value of this message.
 void setObjectResponse(Set<?> objectResponse)
          The return value of this message.
 void setParameters(Object[] parameters)
          The parameter values used in this message.
 void setTarget(Object target)
          The receiver of this message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvocationMessageContext

public InvocationMessageContext(Object target,
                                Class<?> messageType,
                                Method method,
                                Object[] parameters)

InvocationMessageContext

public InvocationMessageContext(Object target,
                                Method method,
                                Object[] parameters)
Method Detail

appendInvocation

public InvocationMessageContext appendInvocation(Object target,
                                                 Method method)

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable

getParameters

public Object[] getParameters()
Description copied from interface: Message
The parameter values used in this message.

Specified by:
getParameters in interface Message

setParameters

public void setParameters(Object[] parameters)
Description copied from interface: Message
The parameter values used in this message.

Specified by:
setParameters in interface Message

proceed

public void proceed()
Description copied from interface: Message
Called to allow the message to proceed to the next implementation method.

Specified by:
proceed in interface Message

getTarget

public Object getTarget()
Description copied from interface: Message
The receiver of this message.

Specified by:
getTarget in interface Message

setTarget

public void setTarget(Object target)
Description copied from interface: Message
The receiver of this message.

Specified by:
setTarget in interface Message

getFunctionalLiteralResponse

public Object getFunctionalLiteralResponse()
Description copied from interface: Message
Single return value of this message.

Specified by:
getFunctionalLiteralResponse in interface Message

setFunctionalLiteralResponse

public void setFunctionalLiteralResponse(Object functionalLiteralResponse)
Description copied from interface: Message
Single return value of this message.

Specified by:
setFunctionalLiteralResponse in interface Message

getFunctionalObjectResponse

public Object getFunctionalObjectResponse()
Description copied from interface: Message
Single return value of this message.

Specified by:
getFunctionalObjectResponse in interface Message

setFunctionalObjectResponse

public void setFunctionalObjectResponse(Object functionalObjectResponse)
Description copied from interface: Message
Single return value of this message.

Specified by:
setFunctionalObjectResponse in interface Message

getLiteralResponse

public Set<Object> getLiteralResponse()
Description copied from interface: Message
The return value of this message.

Specified by:
getLiteralResponse in interface Message

setLiteralResponse

public void setLiteralResponse(Set<?> literalResponse)
Description copied from interface: Message
The return value of this message.

Specified by:
setLiteralResponse in interface Message

getObjectResponse

public Set<Object> getObjectResponse()
Description copied from interface: Message
The return value of this message.

Specified by:
getObjectResponse in interface Message

setObjectResponse

public void setObjectResponse(Set<?> objectResponse)
Description copied from interface: Message
The return value of this message.

Specified by:
setObjectResponse in interface Message


Copyright © 2004-2009 James Leigh Services Inc.. All Rights Reserved.