Class FaultToleranceInterceptor
- java.lang.Object
-
- fish.payara.microprofile.faulttolerance.cdi.FaultToleranceInterceptor
-
- All Implemented Interfaces:
Stereotypes
,Serializable
@Dependent public class FaultToleranceInterceptor extends Object implements Stereotypes, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
PAYARA_FAULT_TOLERANCE_INTERCEPTOR_EXECUTED
-
Constructor Summary
Constructors Constructor Description FaultToleranceInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Annotation>
getStereotypeDefinition(Class<? extends Annotation> stereotype)
The sets of annotations the given sterotype annotation represents.Object
intercept(jakarta.interceptor.InvocationContext context)
boolean
isStereotype(Class<? extends Annotation> annotationType)
Checks for sterotype annotation.protected boolean
shouldIntercept(jakarta.interceptor.InvocationContext invocationContext)
-
-
-
Field Detail
-
PAYARA_FAULT_TOLERANCE_INTERCEPTOR_EXECUTED
protected static final String PAYARA_FAULT_TOLERANCE_INTERCEPTOR_EXECUTED
- See Also:
- Constant Field Values
-
-
Method Detail
-
intercept
public Object intercept(jakarta.interceptor.InvocationContext context) throws Exception
- Throws:
Exception
-
isStereotype
public boolean isStereotype(Class<? extends Annotation> annotationType)
Description copied from interface:Stereotypes
Checks for sterotype annotation.- Specified by:
isStereotype
in interfaceStereotypes
- Parameters:
annotationType
- the type to check- Returns:
- true, if the given annotation type is a sterotype annotation
-
getStereotypeDefinition
public Set<Annotation> getStereotypeDefinition(Class<? extends Annotation> stereotype)
Description copied from interface:Stereotypes
The sets of annotations the given sterotype annotation represents.- Specified by:
getStereotypeDefinition
in interfaceStereotypes
- Parameters:
stereotype
- a sterotype annotation (Stereotypes.isStereotype(Class)
wastrue
)- Returns:
- the set of annotation defined as sterotype
-
-