@NoImplement public interface TypeDefinitionVisitor
ComponentBuildingDefinition.getTypeDefinition()
configuration.Modifier and Type | Method and Description |
---|---|
void |
onConfigurationAttribute(String attributeName,
Class<?> enforcedClass)
Invoked when the
TypeDefinition it's defined from a configuration attribute of the component |
void |
onMapType(TypeDefinition.MapEntryType mapEntryType)
Invoked when the
TypeDefinition it's defined to be a map entry. |
void |
onType(Class<?> type)
Invoked when the
TypeDefinition it's defined from a Class hardcoded value |
void onType(Class<?> type)
TypeDefinition
it's defined from a Class
hardcoded valuetype
- the hardcoded typevoid onConfigurationAttribute(String attributeName, Class<?> enforcedClass)
TypeDefinition
it's defined from a configuration attribute of the componentattributeName
- the name of the configuration attribute holding the type definition. Most likely a fully qualified java
class name.enforcedClass
- the name of the class from which the one defined in the attribute must be an instance of.void onMapType(TypeDefinition.MapEntryType mapEntryType)
TypeDefinition
it's defined to be a map entry.mapEntryType
- the holder for the key type and value typeCopyright © 2018. All rights reserved.