public class OpenTracingCdiUtils extends Object
| Constructor and Description |
|---|
OpenTracingCdiUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <A extends Annotation> |
getAnnotation(javax.enterprise.inject.spi.BeanManager beanManager,
Class<A> annotationClass,
Class<?> annotatedClass,
Method method) |
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> |
getAnnotation(javax.enterprise.inject.spi.BeanManager beanManager,
Class<A> annotationClass,
javax.ws.rs.container.ResourceInfo resourceInfo)
Gets the annotation from the method that triggered the interceptor.
|
static <A extends Annotation,T> |
getConfigOverrideValue(Class<A> annotationClass,
String parameterName,
javax.interceptor.InvocationContext invocationContext,
Class<T> parameterType)
Gets overriding config parameter values if they're present from an invocation context.
|
static <A extends Annotation,T> |
getConfigOverrideValue(Class<A> annotationClass,
String parameterName,
Method method,
Class<T> parameterType)
Gets overriding config parameter values if they're present from an invocation context.
|
static <A extends Annotation,T> |
getConfigOverrideValue(Class<A> annotationClass,
String parameterName,
javax.ws.rs.container.ResourceInfo resourceInfo,
Class<T> parameterType)
Gets overriding config parameter values if they're present from an invocation context.
|
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> A getAnnotation(javax.enterprise.inject.spi.BeanManager beanManager, Class<A> annotationClass, javax.ws.rs.container.ResourceInfo resourceInfo)
A - The annotation type to returnbeanManager - The invoking interceptor's BeanManagerannotationClass - The class of the annotation to getresourceInfo - The targeted jaxrs resourcepublic static <A extends Annotation> A getAnnotation(javax.enterprise.inject.spi.BeanManager beanManager, Class<A> annotationClass, Class<?> annotatedClass, Method method)
public static <A extends Annotation,T> Optional<T> getConfigOverrideValue(Class<A> annotationClass, String parameterName, javax.interceptor.InvocationContext invocationContext, Class<T> parameterType)
A - The annotation typeannotationClass - 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 ofpublic static <A extends Annotation,T> Optional<T> getConfigOverrideValue(Class<A> annotationClass, String parameterName, Method method, Class<T> parameterType)
A - The annotation typeannotationClass - The annotation classparameterName - The name of the parameter to get the override value ofmethod - The method to be invokedparameterType - The type of the parameter to get the override value ofpublic static <A extends Annotation,T> Optional<T> getConfigOverrideValue(Class<A> annotationClass, String parameterName, javax.ws.rs.container.ResourceInfo resourceInfo, Class<T> parameterType)
A - The annotation typeannotationClass - The annotation classparameterName - The name of the parameter to get the override value ofresourceInfo - The targeted jaxrs resourceparameterType - The type of the parameter to get the override value ofCopyright © 2019. All rights reserved.