Class AbstractServiceInvocationHandler

java.lang.Object
jadex.providedservice.impl.service.AbstractServiceInvocationHandler
Direct Known Subclasses:
ServiceInvocationHandler

public abstract class AbstractServiceInvocationHandler extends Object
  • Field Details

    • PROXYTYPE_RAW

      public static final String PROXYTYPE_RAW
      The raw proxy type (i.e. no proxy).
      See Also:
    • PROXYTYPE_DIRECT

      public static final String PROXYTYPE_DIRECT
      The direct proxy type (supports custom interceptors, but uses caller thread).
      See Also:
    • PROXYTYPE_DECOUPLED

      public static final String PROXYTYPE_DECOUPLED
      The (default) decoupled proxy type (decouples from caller thread to component thread).
      See Also:
    • interceptors

      public final List<IServiceInvocationInterceptor> interceptors
      The list of interceptors.
  • Constructor Details

    • AbstractServiceInvocationHandler

      public AbstractServiceInvocationHandler()
  • Method Details

    • getDomainService

      public abstract Object getDomainService()
    • getService

      public abstract Object getService()
    • isRequired

      public abstract boolean isRequired()
    • addFirstServiceInterceptor

      public void addFirstServiceInterceptor(IServiceInvocationInterceptor interceptor)
      Add an interceptor. Must be synchronized as invoke() is called from arbitrary threads.
    • addServiceInterceptor

      public void addServiceInterceptor(IServiceInvocationInterceptor interceptor, int pos)
      Add an interceptor. Must be synchronized as invoke() is called from arbitrary threads.
    • addServiceInterceptor

      public void addServiceInterceptor(IServiceInvocationInterceptor interceptor)
      Add an interceptor. Must be synchronized as invoke() is called from arbitrary threads.
    • removeServiceInterceptor

      public void removeServiceInterceptor(IServiceInvocationInterceptor interceptor)
      Remove an interceptor. Must be synchronized as invoke() is called from arbitrary threads.
    • getInterceptors

      public IServiceInvocationInterceptor[] getInterceptors()
      Get interceptors. Must be synchronized as invoke() is called from arbitrary threads.