public class FaultToleranceCdiUtils extends Object
| Constructor and Description |
|---|
FaultToleranceCdiUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <A extends Annotation> |
getAnnotation(javax.enterprise.inject.spi.BeanManager beanManager,
Class<A> annotationClass,
javax.interceptor.InvocationContext invocationContext)
Gets the annotation from the method that triggered the interceptor.
|
static <A extends Annotation> |
getOverrideValue(org.eclipse.microprofile.config.Config config,
Class<A> annotationClass,
String parameterName,
javax.interceptor.InvocationContext invocationContext,
Class parameterType)
Gets overriding config parameter values if they're present from an invocation context.
|
static <A extends Annotation> |
getOverrideValue(org.eclipse.microprofile.config.Config config,
Class<A> annotationClass,
String parameterName,
String annotatedMethodName,
String annotatedClassCanonicalName,
Class parameterType)
Gets overriding config parameter values if they're present.
|
public static <A extends Annotation> A getAnnotation(javax.enterprise.inject.spi.BeanManager beanManager, Class<A> annotationClass, javax.interceptor.InvocationContext invocationContext)
A - The annotation type to returnbeanManager - The invoking interceptor's BeanManagerannotationClass - The class of the annotation to getinvocationContext - The context of the method invocationpublic static <A extends Annotation> Optional getOverrideValue(org.eclipse.microprofile.config.Config config, Class<A> annotationClass, String parameterName, String annotatedMethodName, String annotatedClassCanonicalName, Class parameterType)
A - The annotation typeconfig - The config to get the overriding parameter values fromannotationClass - The annotation classparameterName - The name of the parameter to get the override value ofannotatedMethodName - The annotated method nameannotatedClassCanonicalName - The canonical name of the annotated method classparameterType - The type of the parameter to get the override value ofpublic static <A extends Annotation> Optional getOverrideValue(org.eclipse.microprofile.config.Config config, Class<A> annotationClass, String parameterName, javax.interceptor.InvocationContext invocationContext, Class parameterType)
A - The annotation typeconfig - The config to get the overriding parameter values fromannotationClass - The annotation classparameterName - The name of the parameter to get the override value ofinvocationContext - The context of the invoking requestparameterType - The type of the parameter to get the override value ofCopyright © 2018. All rights reserved.