Annotation Type Recorded


  • @Target({ANNOTATION_TYPE,METHOD})
    @Retention(RUNTIME)
    @Documented
    public @interface Recorded
    Registers class instances as dependencies. The action should happen inside @Registrar annotated class.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      ScopeDI scope
      The instantiation approach to be used during injection.
      java.lang.String value
      The name of the registered component.
    • Element Detail

      • value

        java.lang.String value
        The name of the registered component. If not specified the method name returning instance of the component will be used instead.
        Returns:
        Nonnull string of the component name which may be empty.
        Default:
        ""
      • scope

        ScopeDI scope
        The instantiation approach to be used during injection.
        Returns:
        The specified instantiation strategy enum value, which by default is ScopeDI.SINGLETON.
        Default:
        com.github.zhgzhg.tinydi.meta.enums.ScopeDI.SINGLETON