Class AbstractServiceInvocationHandler
java.lang.Object
jadex.providedservice.impl.service.AbstractServiceInvocationHandler
- Direct Known Subclasses:
ServiceInvocationHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe list of interceptors.static final String
The (default) decoupled proxy type (decouples from caller thread to component thread).static final String
The direct proxy type (supports custom interceptors, but uses caller thread).static final String
The raw proxy type (i.e. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFirstServiceInterceptor
(IServiceInvocationInterceptor interceptor) Add an interceptor.void
addServiceInterceptor
(IServiceInvocationInterceptor interceptor) Add an interceptor.void
addServiceInterceptor
(IServiceInvocationInterceptor interceptor, int pos) Add an interceptor.abstract Object
Get interceptors.abstract Object
abstract boolean
void
removeServiceInterceptor
(IServiceInvocationInterceptor interceptor) Remove an interceptor.
-
Field Details
-
PROXYTYPE_RAW
The raw proxy type (i.e. no proxy).- See Also:
-
PROXYTYPE_DIRECT
The direct proxy type (supports custom interceptors, but uses caller thread).- See Also:
-
PROXYTYPE_DECOUPLED
The (default) decoupled proxy type (decouples from caller thread to component thread).- See Also:
-
interceptors
The list of interceptors.
-
-
Constructor Details
-
AbstractServiceInvocationHandler
public AbstractServiceInvocationHandler()
-
-
Method Details
-
getDomainService
-
getService
-
isRequired
public abstract boolean isRequired() -
addFirstServiceInterceptor
Add an interceptor. Must be synchronized as invoke() is called from arbitrary threads. -
addServiceInterceptor
Add an interceptor. Must be synchronized as invoke() is called from arbitrary threads. -
addServiceInterceptor
Add an interceptor. Must be synchronized as invoke() is called from arbitrary threads. -
removeServiceInterceptor
Remove an interceptor. Must be synchronized as invoke() is called from arbitrary threads. -
getInterceptors
Get interceptors. Must be synchronized as invoke() is called from arbitrary threads.
-