Class AbstractServiceInvocationHandler
java.lang.Object
jadex.providedservice.impl.service.AbstractServiceInvocationHandler
- Direct Known Subclasses:
ServiceInvocationHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe list of interceptors.static final StringThe (default) decoupled proxy type (decouples from caller thread to component thread).static final StringThe direct proxy type (supports custom interceptors, but uses caller thread).static final StringThe raw proxy type (i.e. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFirstServiceInterceptor(IServiceInvocationInterceptor interceptor) Add an interceptor.voidaddServiceInterceptor(IServiceInvocationInterceptor interceptor) Add an interceptor.voidaddServiceInterceptor(IServiceInvocationInterceptor interceptor, int pos) Add an interceptor.abstract ObjectGet interceptors.abstract Objectabstract booleanvoidremoveServiceInterceptor(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.
-