Package fish.payara.opentracing.jaxws
Class OpenTracingJaxwsCdiUtils
- java.lang.Object
-
- fish.payara.opentracing.jaxws.OpenTracingJaxwsCdiUtils
-
public class OpenTracingJaxwsCdiUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description OpenTracingJaxwsCdiUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <A extends Annotation>
AgetAnnotation(jakarta.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>
Optional<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.
-
-
-
Method Detail
-
getAnnotation
public static <A extends Annotation> A getAnnotation(jakarta.enterprise.inject.spi.BeanManager beanManager, Class<A> annotationClass, MonitorContext monitorContext)
Gets the annotation from the method that triggered the interceptor.- Type Parameters:
A
- The annotation type to return- Parameters:
beanManager
- The invoking interceptor's BeanManagerannotationClass
- The class of the annotation to getmonitorContext
- The targeted jaxrs resource- Returns:
- The annotation that triggered the interceptor.
-
getConfigOverrideValue
public static <A extends Annotation,T> Optional<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.- Type Parameters:
A
- The annotation type- Parameters:
annotationClass
- 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 of- Returns:
- An Optional containing the override value from the config if there is one
-
-