Class GenericConfig<X extends Annotation>
- java.lang.Object
-
- io.smallrye.faulttolerance.config.GenericConfig<X>
-
- Direct Known Subclasses:
BulkheadConfig,CircuitBreakerConfig,FallbackConfig,RetryConfig,TimeoutConfig
public abstract class GenericConfig<X extends Annotation> extends Object
- Author:
- Antoine Sabot-Durand
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.enterprise.inject.spi.AnnotatedMethod<?>annotatedMethodprotected Xannotationprotected ElementTypeannotationSourceprotected Class<X>annotationTypeprotected Class<?>beanClassstatic StringCONFIG_PARAMS_CACHE_KEYThis config property key can be used to disable config parameters caching.protected Methodmethod
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <U> Uget(String key)<U> Uget(String key, Class<U> expectedType)protected static org.eclipse.microprofile.config.ConfiggetConfig()protected StringgetConfigKeyForClass()protected StringgetConfigKeyForMethod()protected abstract Map<String,Class<?>>getKeysToType()StringgetMethodInfo()abstract voidvalidate()
-
-
-
Field Detail
-
CONFIG_PARAMS_CACHE_KEY
public static final String CONFIG_PARAMS_CACHE_KEY
This config property key can be used to disable config parameters caching. If disabled, properties are resolved every time a config parameter is needed.- See Also:
- Constant Field Values
-
beanClass
protected final Class<?> beanClass
-
method
protected final Method method
-
annotation
protected final X extends Annotation annotation
-
annotationType
protected final Class<X extends Annotation> annotationType
-
annotatedMethod
protected final javax.enterprise.inject.spi.AnnotatedMethod<?> annotatedMethod
-
annotationSource
protected final ElementType annotationSource
-
-
Method Detail
-
get
public <U> U get(String key)
-
validate
public abstract void validate()
-
getConfigKeyForMethod
protected String getConfigKeyForMethod()
-
getConfigKeyForClass
protected String getConfigKeyForClass()
-
getMethodInfo
public String getMethodInfo()
-
getConfig
protected static org.eclipse.microprofile.config.Config getConfig()
-
-