public class OpenTracingJaxwsCdiUtils extends Object
Constructor and Description |
---|
OpenTracingJaxwsCdiUtils() |
Modifier and Type | Method and Description |
---|---|
static <A extends Annotation> |
getAnnotation(javax.enterprise.inject.spi.BeanManager beanManager,
Class<A> annotationClass,
MonitorContext monitorContext)
Gets the annotation from the method that triggered the interceptor.
|
static <A extends Annotation,T> |
getConfigOverrideValue(Class<A> annotationClass,
String parameterName,
MonitorContext monitorContext,
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, MonitorContext monitorContext)
A
- The annotation type to returnbeanManager
- The invoking interceptor's BeanManagerannotationClass
- The class of the annotation to getmonitorContext
- The targeted jaxrs resourcepublic static <A extends Annotation,T> Optional<T> getConfigOverrideValue(Class<A> annotationClass, String parameterName, MonitorContext monitorContext, Class<T> parameterType)
A
- The annotation typeannotationClass
- The annotation classparameterName
- The name of the parameter to get the override value ofmonitorContext
- The context of the invoking requestparameterType
- The type of the parameter to get the override value ofCopyright © 2021. All rights reserved.