Annotation Type Plugin


  • @Target({TYPE,ANNOTATION_TYPE})
    @Retention(RUNTIME)
    @Documented
    public @interface Plugin
    Simplifies work with guice multibindings. Annotate one or more beans with extension point declaration (interface) and you then can autowire collection of found plugins. Internally each bean is registered into Multibinder.

    To use MapBinder create your own annotation with single attribute value and annotate it with @Plugin. New annotation value will be used as key.

    or if name set.
    Since:
    08.10.2014
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.Class<?> value  
    • Element Detail

      • value

        java.lang.Class<?> value
        Returns:
        Plugin type.