Interface AnnotationFactory<I,A extends Annotation>


public interface AnnotationFactory<I,A extends Annotation>
This is a kind of workaround through the fact, that annotations cannot be extended. If you want to create annotations, not known directly by the underlying framework, the framework can provide a base annotation with only one field: the factory class that will build something through the given annotation.

This base annotation has to be followed by the specific (unknown to the underlying framework) annotation, holding the desired values.

Example: @With(MyAnnotationFactory.class) @MySpecialAnnotation(myValue1="", myValue2="")

Author:
Tom