Annotation Type Component


  • @Documented
    @Retention(CLASS)
    @Target(FIELD)
    @Inherited
    public @interface Component
    Used to configure injection of Plexus components by MavenPluginManager.getConfiguredMojo(...).
    Since:
    3.0
    Author:
    Olivier Lamy
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String hint
      hint of the component to inject.
      java.lang.Class<?> role
      role of the component to inject.
    • Element Detail

      • role

        java.lang.Class<?> role
        role of the component to inject.
        Returns:
        the role
        Default:
        java.lang.Object.class
      • hint

        java.lang.String hint
        hint of the component to inject.
        Returns:
        the hint
        Default:
        ""