Annotation Type AgentServiceSearch


  • @Target({FIELD,METHOD})
    @Retention(RUNTIME)
    @Deprecated
    public @interface AgentServiceSearch
    Deprecated.
    Injects a service into a field or a method of a component. The referenced service must be declared with a RequiredService annotation. Use @OnService instead
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean lazy
      Deprecated.
      todo: remove and replace by query.
      java.lang.String name
      Deprecated.
      The required service name that is used for searching the service.
      boolean required
      Deprecated.
      Fail at startup if no service is found?
      RequiredService requiredservice
      Deprecated.
      Define a required service inline.
    • Element Detail

      • name

        java.lang.String name
        Deprecated.
        The required service name that is used for searching the service.
        Default:
        ""
      • required

        boolean required
        Deprecated.
        Fail at startup if no service is found?
        Default:
        true
      • lazy

        boolean lazy
        Deprecated.
        todo: remove and replace by query. If is lazy the service search will happen on first call. This can go wrong if first call is a synchronous message. If lazy is false, the agent might block when search takes time.
        Default:
        true
      • requiredservice

        RequiredService requiredservice
        Deprecated.
        Define a required service inline. If given no name it will receive the field name as name.
        Default:
        @jadex.micro.annotation.RequiredService(name="", type=java.lang.Object.class)