public class ServiceInvocationContext extends Object
Modifier and Type | Field and Description |
---|---|
Exception |
ex |
static long |
PRINT_DELAY
Print every 10 seconds.
|
static boolean |
PROFILING
Enable call profiling.
|
static ThreadLocal<ServiceInvocationContext> |
SICS |
Constructor and Description |
---|
ServiceInvocationContext(Object proxy,
Method method,
IServiceInvocationInterceptor[] interceptors,
IComponentIdentifier platform,
boolean realtime,
IServiceIdentifier sid,
Cause crcause)
Create a new context.
|
ServiceInvocationContext(ServiceInvocationContext context)
Create a copied context.
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getArgumentArray()
Get the args.
|
List<Object> |
getArguments()
Get the args.
|
IComponentIdentifier |
getCaller()
Get the caller.
|
IComponentAdapter |
getCallerAdapter()
Get the caller adapter.
|
ServiceCall |
getLastServiceCall()
Get the last service call.
|
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.
|
ServiceCall |
getServiceCall()
Get the service call.
|
Object |
getTargetObject()
Get the real target object.
|
IFuture<Void> |
invoke()
Invoke the next interceptor.
|
IFuture<Void> |
invoke(Object object,
Method method,
List<Object> args)
Invoke the next interceptor.
|
boolean |
isRemoteCall()
Test if a call is remote.
|
void |
setArguments(List<Object> args)
Set the arguments.
|
void |
setCurrentCall(ServiceCall call)
Set the lastcall.
|
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 ThreadLocal<ServiceInvocationContext> SICS
public static final boolean PROFILING
public static final long PRINT_DELAY
public Exception ex
public ServiceInvocationContext(Object proxy, Method method, IServiceInvocationInterceptor[] interceptors, IComponentIdentifier platform, boolean realtime, IServiceIdentifier sid, Cause crcause)
public ServiceInvocationContext(ServiceInvocationContext context)
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 Object[] getArgumentArray()
public void setArguments(List<Object> 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<Object> args)
public IServiceInvocationInterceptor getNextInterceptor()
public boolean isRemoteCall()
public Object getTargetObject()
public IComponentAdapter getCallerAdapter()
public IComponentIdentifier getCaller()
public ServiceCall getServiceCall()
public ServiceCall getLastServiceCall()
public void setCurrentCall(ServiceCall call)
lastcall
- The lastcall to set.Copyright © 2013. All Rights Reserved.