public class ServiceInvocationContext extends Object
Modifier and Type | Field and Description |
---|---|
static long |
PRINT_DELAY
Print every 10 seconds.
|
static boolean |
PROFILING
Enable call profiling.
|
Constructor and Description |
---|
ServiceInvocationContext(Object proxy,
IServiceInvocationInterceptor[] interceptors,
IComponentIdentifier platform)
Create a new context.
|
ServiceInvocationContext(ServiceInvocationContext context)
Create a copied context.
|
Modifier and Type | Method and Description |
---|---|
ServiceInvocationContext |
clone()
Clone a service invocation context.
|
Object[] |
getArgumentArray()
Get the args.
|
List |
getArguments()
Get the args.
|
IComponentAdapter |
getCallerAdapter()
Get the caller adapter.
|
Method |
getMethod()
Get the method.
|
IServiceInvocationInterceptor |
getNextInterceptor()
Get the next interceptor.
|
Object |
getObject()
Get the object.
|
Object |
getProxy()
Get the proxy.
|
Object |
getResult()
Get the result.
|
IFuture<Void> |
invoke()
Invoke the next interceptor.
|
IFuture<Void> |
invoke(Object object,
Method method,
List args)
Invoke the next interceptor.
|
boolean |
isRemoteCall()
Test if a call is remote.
|
void |
setArguments(List args)
Set the arguments.
|
void |
setMethod(Method method)
Set the method.
|
void |
setObject(Object object)
Set the object.
|
void |
setProxy(Object proxy)
Set the proxy.
|
void |
setResult(Object result)
Set the result.
|
String |
toString()
String representation.
|
public static final boolean PROFILING
public static final long PRINT_DELAY
public ServiceInvocationContext(Object proxy, IServiceInvocationInterceptor[] interceptors, IComponentIdentifier platform)
public ServiceInvocationContext(ServiceInvocationContext context)
public ServiceInvocationContext clone()
public Object getProxy()
public void setProxy(Object proxy)
proxy
- The proxy to set.public Object getObject()
public void setObject(Object object)
object
- The object to set.public Method getMethod()
public void setMethod(Method method)
method
- The method to set.public List getArguments()
public Object[] getArgumentArray()
public void setArguments(List args)
args
- The arguments to set.public Object getResult()
public void setResult(Object result)
result
- The result to set.public IFuture<Void> invoke(Object object, Method method, List args)
public IServiceInvocationInterceptor getNextInterceptor()
public boolean isRemoteCall()
public IComponentAdapter getCallerAdapter()
Copyright © 2012. All Rights Reserved.