Interface Stereotypes

  • All Known Implementing Classes:
    FaultToleranceInterceptor

    public interface Stereotypes
    Decouples sterotype-annotation lookup from application server context.
    Author:
    Jan Bernitt
    • 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) was true)
        Returns:
        the set of annotation defined as sterotype