tigase.kernel.beans

## Annotation Type Inject

-     @Target(value=FIELD)
       @Retention(value=RUNTIME)
       @Inherited
       @Documented
      public @interface Inject

  This annotation marks field in class that Kernel should inject dependency here.

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `String` | `bean` Name of bean to be injected (optional).
    `boolean` | `nullAllowed` Specify if injection of dependency is required or not.
    `Class<?>` | `type` Type of bean to be injected (opiotnal).

- - ### Element Detail

    - #### bean

          public abstract String bean

      Name of bean to be injected (optional).
      Returns:
        name of bean.
      Default:
        ""

  - - #### nullAllowed

          public abstract boolean nullAllowed

      Specify if injection of dependency is required or not.
      Returns:
        `true` if `null` value is allowed to inject.
      Default:
        false

  - - #### type

          public abstract Class<?> type

      Type of bean to be injected (opiotnal).
      Returns:
        type of bean.
      Default:
        tigase.kernel.beans.Inject.EMPTY.class

Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.