Annotation Type Supervised


  • @Target(TYPE)
    @Retention(RUNTIME)
    @Documented
    public @interface Supervised
    Marks the classes eligible for dependency injection.
    • 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 the annotated component which will be registered with.
    • Element Detail

      • value

        java.lang.String value
        The name the annotated component which will be registered with. If it's not specified the simple class name will be used instead.
        Returns:
        Nonnull string with the component's name, or a blank one.
        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