Annotation Type Feature


  • @Target(TYPE)
    public @interface Feature
    Marks a class as a Feature specification. The annotation processor adds Feature as an implemented interface. In the context of an application, a feature is usually a (small) distinct characteristic which can be part of some variants but not all of them (for instance, only the professional version of an application provides a REST API).

    Usage example:
     @Feature
     class Feature1 {
     }
     
     
    Leads to:
     
     public class Feature1 implements Feature {
     }
     
     
    Since:
    2.0.0
    Author:
    Oliver Libutzki <[email protected]>
    See Also:
    Feature