Package io.smallrye.config
Class ConfigMappingInterface
java.lang.Object
io.smallrye.config.ConfigMappingInterface
- All Implemented Interfaces:
ConfigMappingMetadata
The metadata representation of a
ConfigMapping annotated class.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic final classstatic final classstatic classstatic final classstatic final classstatic classstatic final class -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Get the generated implementation class name.static ConfigMappingInterfacegetConfigurationInterface(Class<?> interfaceType) Get the configuration interface information for the given interface class.Class<?> Get the configuration interface type.Get the array ofConfigMappingInterface.Propertyrelative to thisConfigMappingInterface.getProperties(ConfigMappingInterface configMapping) Constructs a representation of allConfigMappingInterface.Propertycontained in theConfigMappingInterface.Get the array ofConfigMappingInterfacesuper types relative to thisConfigMappingInterface.booleanboolean
-
Method Details
-
getConfigurationInterface
Get the configuration interface information for the given interface class. This information is cached.- Parameters:
interfaceType- the interface type (must not benull)- Returns:
- the configuration interface, or
nullif the type does not appear to be a configuration interface
-
getInterfaceType
Get the configuration interface type.- Specified by:
getInterfaceTypein interfaceConfigMappingMetadata- Returns:
- the configuration interface type
-
getClassName
Get the generated implementation class name. The class name is the configuration interface type name, plus the hashcode of the configuration interface type name with the suffixImpl.- Specified by:
getClassNamein interfaceConfigMappingMetadata- Returns:
- the generated implementation class name
-
getSuperTypes
Get the array ofConfigMappingInterfacesuper types relative to thisConfigMappingInterface. The array includes all super types untiljava.lang.Object.- Returns:
- the array of
ConfigMappingInterfacesuper types
-
getProperties
Get the array ofConfigMappingInterface.Propertyrelative to thisConfigMappingInterface. The array includes all properties, including properties contributed by super types.- Returns:
- the array of
ConfigMappingInterface.Property
-
hasConfigMapping
public boolean hasConfigMapping() -
getNamingStrategy
-
isBeanStyleGetters
public boolean isBeanStyleGetters() -
getClassBytes
public byte[] getClassBytes()- Specified by:
getClassBytesin interfaceConfigMappingMetadata
-
getProperties
public static Map<Class<?>,Map<String, getPropertiesMap<String, ConfigMappingInterface.Property>>> (ConfigMappingInterface configMapping) Constructs a representation of allConfigMappingInterface.Propertycontained in theConfigMappingInterface.- The first level
Mapkey is eachClassthat is part of the mapping - The second level
Mapkey is eachStringpath in the mapping to aConfigMappingInterface.Property - The third level
Mapkey is eachStringConfigMappingInterface.Propertyname under the mapping path, including sub-elements and nested elements
ConfigMapping.prefix()because the sameConfigMappingInterfacecan be registered for multiple prefixes.The mapping class root
ConfigMappingInterface.Propertyuse the emptyStringfor the path key.- Parameters:
configMapping- aConfigMappingInterfacerepresentation of aConfigMappingannotated class- Returns:
- a
MapwithConfigMappingInterface.Propertyvalues
- The first level
-