Annotation 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 
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Name of bean to be injected (optional).
    boolean
    Specify if injection of dependency is required or not.
    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