public final class AnnotationClassParser extends Object
Modifier and Type | Method and Description |
---|---|
static org.apache.sling.caconfig.spi.metadata.ConfigurationMetadata |
buildConfigurationMetadata(Class<?> clazz)
Build configuration metadata by parsing the given annotation interface class and it's configuration annotations.
|
static String |
getConfigurationName(Class<?> clazz)
Get configuration name for given configuration annotation class.
|
static String |
getPropertyName(String methodName)
Implements the method name mapping as defined in OSGi R6 Compendium specification,
Chapter 112.
|
static boolean |
isContextAwareConfig(Class<?> clazz)
Checks if the given class is suitable to be mapped with context-aware configuration.
|
public static boolean isContextAwareConfig(Class<?> clazz)
Configuration
annotation has to be present.clazz
- Given classpublic static String getConfigurationName(Class<?> clazz)
clazz
- Annotation classpublic static String getPropertyName(String methodName)
methodName
- Method namepublic static org.apache.sling.caconfig.spi.metadata.ConfigurationMetadata buildConfigurationMetadata(Class<?> clazz)
clazz
- Configuration annotation classCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.