Interface Stereotypes
-
- All Known Implementing Classes:
FaultToleranceInterceptor
public interface Stereotypes
Decouples sterotype-annotation lookup from application server context.- Author:
- Jan Bernitt
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<Annotation>
getStereotypeDefinition(Class<? extends Annotation> stereotype)
The sets of annotations the given sterotype annotation represents.boolean
isStereotype(Class<? extends Annotation> annotationType)
Checks for sterotype annotation.
-
-
-
Method Detail
-
isStereotype
boolean isStereotype(Class<? extends Annotation> annotationType)
Checks for sterotype annotation.- Parameters:
annotationType
- the type to check- Returns:
- true, if the given annotation type is a sterotype annotation
-
getStereotypeDefinition
Set<Annotation> getStereotypeDefinition(Class<? extends Annotation> stereotype)
The sets of annotations the given sterotype annotation represents.- Parameters:
stereotype
- a sterotype annotation (isStereotype(Class)
wastrue
)- Returns:
- the set of annotation defined as sterotype
-
-