Package tigase.kernel.beans

# Annotation Interface Inject

@Target(FIELD) @Retention(RUNTIME) @Inherited @Documented public @interface Inject
This annotation marks field in class that Kernel should inject dependency here.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static class`
  `Inject.EMPTY`

- ## Optional Element Summary

  Optional Elements
  Modifier and Type
  Optional Element
  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 Details

  - ### bean

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

  - ### nullAllowed

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

  - ### type

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