Annotation Type RequiredService


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

      Fields 
      Modifier and Type Fields Description
      static int MANY
      Constant for multiplicity many.
      static java.lang.String PROXYTYPE_DECOUPLED
      The (default) decoupled proxy type (decouples from component thread to caller thread).
      static java.lang.String PROXYTYPE_DIRECT
      The direct proxy type (supports custom interceptors, but uses caller thread).
      static java.lang.String PROXYTYPE_RAW
      The raw proxy type (i.e.
      static int UNDEFINED
      Constant for multiplicity undefined.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Value[] interceptors
      Deprecated.
      int max
      The maximum number of services
      int min
      The minimum number of services.
      java.lang.String name
      The component internal service name.
      NFRProperty[] nfprops
      The required service non functional properties.
      java.lang.String proxytype
      Deprecated.
      ServiceScope scope
      The search scope.
      java.lang.String[] tags
      The service tags to search for.
      java.lang.Class<?> type
      The service interface type.
    • Field Detail

      • PROXYTYPE_RAW

        static final java.lang.String PROXYTYPE_RAW
        The raw proxy type (i.e. no proxy).
      • PROXYTYPE_DIRECT

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

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

        static final int MANY
        Constant for multiplicity many.
      • UNDEFINED

        static final int UNDEFINED
        Constant for multiplicity undefined.
    • Element Detail

      • name

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

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

        ServiceScope scope
        The search scope.
        Default:
        jadex.bridge.service.ServiceScope.DEFAULT
      • tags

        java.lang.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
      • nfprops

        NFRProperty[] nfprops
        The required service non functional properties. NOT used for search, but for adding required service properties.
        Default:
        {}
      • proxytype

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

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