Annotation Type SpringBean


  • @Retention(RUNTIME)
    @Target(FIELD)
    @Documented
    public @interface SpringBean
    Annotation used to tag a field as a placeholder for a spring bean.
    Author:
    Igor Vaynberg (ivaynberg)
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String name
      Optional attribute for specifying the name of the bean.
      boolean required
      Optional attribute for specifying if bean is required or not.
    • Element Detail

      • name

        java.lang.String name
        Optional attribute for specifying the name of the bean. If not specified, the bean will be looked up by the type of the field with the annotation.
        Returns:
        name attr
        Default:
        ""
      • required

        boolean required
        Optional attribute for specifying if bean is required or not.
        Returns:
        false if the bean is optional. Default: true.
        Default:
        true