Class ServiceInvocationHandler

java.lang.Object
jadex.providedservice.impl.service.AbstractServiceInvocationHandler
jadex.providedservice.impl.service.ServiceInvocationHandler
All Implemented Interfaces:
ISwitchCall, InvocationHandler

public class ServiceInvocationHandler extends AbstractServiceInvocationHandler implements InvocationHandler, ISwitchCall
Service invocation interceptor. It has a multi collection of interceptors per method. Executes the list of interceptors one by one. In case no handler can be found a fallback handler is used.
  • 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:
    • comp

      protected jadex.core.impl.Component comp
      The internal access.
    • sid

      protected IServiceIdentifier sid
      The service identifier.
    • service

      protected Object service
      The service.
    • required

      protected boolean required
      The flag if the proxy is required (provided otherwise).
    • switchcall

      protected boolean switchcall
      The flag if a switchcall should be done.
  • Constructor Details

    • ServiceInvocationHandler

      public ServiceInvocationHandler(jadex.core.impl.Component comp, IServiceIdentifier sid, boolean required)
      Create a new invocation handler.
    • ServiceInvocationHandler

      public ServiceInvocationHandler(jadex.core.impl.Component comp, IService service, boolean required)
      Create a new invocation handler.
    • ServiceInvocationHandler

      public ServiceInvocationHandler(jadex.core.impl.Component comp, ServiceInfo service)
      Create a new invocation handler.
  • Method Details