org.apache.felix.ipojo.annotations

## Annotation Type Stereotype

    @Target(value=ANNOTATION_TYPE)
     @Retention(value=CLASS)
    public @interface Stereotype

In many systems, use of architectural patterns produces a set of recurring roles. A stereotype allows a framework developer to identify such a role and declare some common metadata for objects with that role in a central place. A stereotype is an annotation, annotated with @Stereotype, that captures several other annotations. For example, the following stereotype defines a @PseudoSingletonComponent annotation, that will act, when applied on a component, just like if @Component and @Instantiate where directly applied on the target component.

         @Component
         @Instantiate
         @Stereotype
         @Target(TYPE)
         @Retention(CLASS)
         public @interface PseudoSingletonComponent {}

Usage:

         @PseudoSingletonComponent
         public class HelloWorldComponent {
           // ...
         }

Equivalent to:

         @Component
         @Instantiate
         public class HelloWorldComponent {
           // ...
         }

Author:
  Felix Project Team