Annotation Interface RequiredService


@Target(ANNOTATION_TYPE) @Retention(RUNTIME) public @interface RequiredService
Required service data. todo: support hard constraints todo: support ranking
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    jadex.model.annotation.Value[]
    Deprecated.
    int
    The maximum number of services
    int
    The minimum number of services.
    The component internal service name.
    Deprecated.
    jadex.providedservice.ServiceScope
    The search scope.
    The scope expression to be evaluated on initialization (only used when scope is set to ).
    The service tags to search for.
    The service interface type.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Constant for multiplicity many.
    static final String
    The (default) decoupled proxy type (decouples from component thread to caller thread).
    static final String
    The direct proxy type (supports custom interceptors, but uses caller thread).
    static final String
    The raw proxy type (i.e.
    static final int
    Constant for multiplicity undefined.
  • Field Details

    • PROXYTYPE_RAW

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

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

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

      static final int MANY
      Constant for multiplicity many.
      See Also:
    • UNDEFINED

      static final int UNDEFINED
      Constant for multiplicity undefined.
      See Also:
  • Element Details

    • name

      String name
      The component internal service name.
      Default:
      ""
    • type

      Class<?> type
      The service interface type.
      Default:
      java.lang.Object.class
    • scope

      jadex.providedservice.ServiceScope scope
      The search scope.
      Default:
      DEFAULT
    • tags

      String[] tags
      The service tags to search for.
      Default:
      {}
    • min

      int min
      The minimum number of services.
      Default:
      -2
    • max

      int max
      The maximum number of services
      Default:
      -2
    • scopeexpression

      String scopeexpression
      The scope expression to be evaluated on initialization (only used when scope is set to ).
      Default:
      ""
    • proxytype

      @Deprecated String proxytype
      Deprecated.
      The proxy type.
      Default:
      "decoupled"
    • interceptors

      @Deprecated jadex.model.annotation.Value[] interceptors
      Deprecated.
      The interceptors.
      Default:
      {}