org.sape.carbon.core.component.proxy
Class Invocation

java.lang.Object
  |
  +--org.sape.carbon.core.component.proxy.Invocation
All Implemented Interfaces:
Serializable

public class Invocation
extends Object
implements Serializable

This object is built to contain a call to a component within the component's facade. It is then passed through the interceptor chain to allow interceptors to handle the call appropriately.

Copyright 2003 Sapient

Since:
carbon 2.0
Version:
$Revision: 1.4 $($Author: dvoet $ / $Date: 2003/05/05 21:21:14 $)
Author:
Greg Hinkle, March 2003
See Also:
Serialized Form

Field Summary
protected  boolean isTargetFunctionalImplementation
          Indicates if this method is in the functional implementation.
protected  Method method
          Holds the target method.
protected  Object[] methodArguments
          Holds the objects to be passed to the target method.
protected  Class[] methodSignature
          Holds the classes needed in the target method signature.
protected  Object target
          Holds the target object.
 
Constructor Summary
Invocation(Object target, Method method, Object[] methodArguments, Class[] methodSignature, boolean isTargetFunctionalImplementation)
          Constructs an invocation object
 
Method Summary
 Method getMethod()
          Gets the method being invoked.
 Object[] getMethodArguments()
          Returns the array of object parameters for the target method.
 Class[] getMethodSignature()
          Returns the array of classes for the target method.
 Object getTarget()
          Retrieves the target object.
 boolean isTargetFunctionalImplementation()
          Is the intended target the component's functional implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

protected Object target
Holds the target object.


method

protected Method method
Holds the target method.


methodArguments

protected Object[] methodArguments
Holds the objects to be passed to the target method.


methodSignature

protected Class[] methodSignature
Holds the classes needed in the target method signature.


isTargetFunctionalImplementation

protected boolean isTargetFunctionalImplementation
Indicates if this method is in the functional implementation.

Constructor Detail

Invocation

public Invocation(Object target,
                  Method method,
                  Object[] methodArguments,
                  Class[] methodSignature,
                  boolean isTargetFunctionalImplementation)
Constructs an invocation object

Parameters:
target - the Target object on which this method was intended to be called. Must be either the component's implementation or one of its configured decorators.
method - the method that intended
methodArguments - the arguments to the method
methodSignature - the signature of the method
isTargetFunctionalImplementation - true if this invocation's target is the component's functional implementation, false if it is one of the decorators.
Method Detail

getTarget

public Object getTarget()
Retrieves the target object.

Returns:
the target object

getMethod

public Method getMethod()
Gets the method being invoked.

Returns:
method being invoked

getMethodArguments

public Object[] getMethodArguments()
Returns the array of object parameters for the target method.

Returns:
array of object parameters for the target method

getMethodSignature

public Class[] getMethodSignature()
Returns the array of classes for the target method.

Returns:
array of classes for the target method

isTargetFunctionalImplementation

public boolean isTargetFunctionalImplementation()
Is the intended target the component's functional implementation. This is typically used by interceptors who provide special functionality for calls to the functional impelementation.

Returns:
true if the target is the functional impelementation


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.