Package io.smallrye.config
Class ConfigMappingInterface
- java.lang.Object
-
- io.smallrye.config.ConfigMappingInterface
-
- All Implemented Interfaces:
ConfigMappingMetadata
public final class ConfigMappingInterface extends Object implements ConfigMappingMetadata
Information about a configuration interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfigMappingInterface.CollectionPropertystatic classConfigMappingInterface.DefaultMethodPropertystatic classConfigMappingInterface.GroupPropertystatic classConfigMappingInterface.LeafPropertystatic classConfigMappingInterface.MapPropertystatic classConfigMappingInterface.MayBeOptionalPropertystatic interfaceConfigMappingInterface.NamingStrategystatic classConfigMappingInterface.OptionalPropertystatic classConfigMappingInterface.PrimitivePropertystatic classConfigMappingInterface.Property
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getClassBytes()StringgetClassName()static ConfigMappingInterfacegetConfigurationInterface(Class<?> interfaceType)Get the configuration interface information for the given interface class.Class<?>getInterfaceType()Get the configuration interface type.ConfigMappingInterface.NamingStrategygetNamingStrategy()ConfigMappingInterface.Property[]getProperties()
-
-
-
Method Detail
-
getConfigurationInterface
public static ConfigMappingInterface getConfigurationInterface(Class<?> interfaceType)
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
public Class<?> getInterfaceType()
Get the configuration interface type.- Specified by:
getInterfaceTypein interfaceConfigMappingMetadata- Returns:
- the configuration interface type
-
getProperties
public ConfigMappingInterface.Property[] getProperties()
-
getNamingStrategy
public ConfigMappingInterface.NamingStrategy getNamingStrategy()
-
getClassName
public String getClassName()
- Specified by:
getClassNamein interfaceConfigMappingMetadata
-
getClassBytes
public byte[] getClassBytes()
- Specified by:
getClassBytesin interfaceConfigMappingMetadata
-
-