public class DelegationInterceptor extends AbstractMultiInterceptor
Modifier and Type | Field and Description |
---|---|
protected RequiredServiceBinding |
binding
The service binding.
|
protected IExternalAccess |
ea
The external access.
|
protected IRequiredServiceFetcher |
fetcher
The service fetcher.
|
protected RequiredServiceInfo |
info
The service info.
|
protected static java.util.Set<java.lang.reflect.Method> |
NO_DELEGATION
The static set of no delegation methods.
|
protected IServiceIdentifier |
sid
The service id of myself (must be excluded to avoid looped invocation of itself).
|
protected static java.util.Map |
SUBINTERCEPTORS
The static map of subinterceptors (method -> interceptor).
|
Constructor and Description |
---|
DelegationInterceptor(IInternalAccess ia,
RequiredServiceInfo info,
RequiredServiceBinding binding,
IRequiredServiceFetcher fetcher,
IServiceIdentifier sid,
boolean realtime)
Create a new invocation handler.
|
Modifier and Type | Method and Description |
---|---|
IFuture<java.lang.Void> |
doExecute(ServiceInvocationContext sic)
Execute the command.
|
IExternalAccess |
getExternalAccess()
Get the ea.
|
IServiceInvocationInterceptor |
getInterceptor(ServiceInvocationContext sic)
Get a sub interceptor for special cases.
|
static java.util.Map |
getInterceptors()
Get the standard interceptors for composite service proxies.
|
execute, isApplicable
protected static final java.util.Map SUBINTERCEPTORS
protected static final java.util.Set<java.lang.reflect.Method> NO_DELEGATION
protected IExternalAccess ea
protected RequiredServiceInfo info
protected RequiredServiceBinding binding
protected IRequiredServiceFetcher fetcher
protected IServiceIdentifier sid
public DelegationInterceptor(IInternalAccess ia, RequiredServiceInfo info, RequiredServiceBinding binding, IRequiredServiceFetcher fetcher, IServiceIdentifier sid, boolean realtime)
public IFuture<java.lang.Void> doExecute(ServiceInvocationContext sic)
doExecute
in class AbstractMultiInterceptor
args
- The argument(s) for the call.public IExternalAccess getExternalAccess()
public IServiceInvocationInterceptor getInterceptor(ServiceInvocationContext sic)
getInterceptor
in class AbstractMultiInterceptor
sic
- The context.public static java.util.Map getInterceptors()