Class AnnotationDrivenConfigurationProvider<T extends java.lang.annotation.Annotation>
- java.lang.Object
-
- com.zebrunner.agent.core.config.provider.AnnotationDrivenConfigurationProvider<T>
-
- All Implemented Interfaces:
ConfigurationProvider
- Direct Known Subclasses:
EnvironmentConfigurationProvider,PropertiesConfigurationProvider,SystemPropertiesConfigurationProvider,YamlConfigurationProvider
public abstract class AnnotationDrivenConfigurationProvider<T extends java.lang.annotation.Annotation> extends java.lang.Object implements ConfigurationProvider
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAnnotationDrivenConfigurationProvider(java.lang.Class<T> annotationClass)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidafterPropertiesSet()protected voidbeforePropertiesSet()ReportingConfigurationgetConfiguration()protected abstract java.util.List<java.lang.String>getConfigurationFieldKeys(T annotation)protected abstract java.lang.StringgetConfigurationFieldValue(java.lang.String key)
-
-
-
Constructor Detail
-
AnnotationDrivenConfigurationProvider
protected AnnotationDrivenConfigurationProvider(java.lang.Class<T> annotationClass)
-
-
Method Detail
-
getConfiguration
public ReportingConfiguration getConfiguration()
- Specified by:
getConfigurationin interfaceConfigurationProvider
-
beforePropertiesSet
protected void beforePropertiesSet()
-
afterPropertiesSet
protected void afterPropertiesSet()
-
getConfigurationFieldKeys
protected abstract java.util.List<java.lang.String> getConfigurationFieldKeys(T annotation)
-
getConfigurationFieldValue
protected abstract java.lang.String getConfigurationFieldValue(java.lang.String key)
-
-