Module org.mule.runtime.dsl.api
Interface TypeDefinitionVisitor
@NoImplement
public interface TypeDefinitionVisitor
Visitor that will be invoked based on a
ComponentBuildingDefinition.getTypeDefinition() configuration.- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidonConfigurationAttribute(String attributeName, Class<?> enforcedClass) Deprecated.voidonConfigurationAttribute(String groupName, String attributeName, Class<?> enforcedClass) Invoked when theTypeDefinitionit's defined from a configuration attribute of the componentvoidonMapType(TypeDefinition.MapEntryType mapEntryType) Invoked when theTypeDefinitionit's defined to be a map entry.voidInvoked when theTypeDefinitionit's defined from aClasshardcoded value
-
Method Details
-
onType
Invoked when theTypeDefinitionit's defined from aClasshardcoded value- Parameters:
type- the hardcoded type
-
onConfigurationAttribute
Deprecated.UseonConfigurationAttribute(String, String, Class)instead.Invoked when theTypeDefinitionit's defined from a configuration attribute of the component- Parameters:
attributeName- 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.
-
onConfigurationAttribute
Invoked when theTypeDefinitionit's defined from a configuration attribute of the component- Parameters:
attributeName- the name of the parameter group containing the attribute.attributeName- 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.
-
onMapType
Invoked when theTypeDefinitionit's defined to be a map entry.- Parameters:
mapEntryType- the holder for the key type and value type
-
onConfigurationAttribute(String, String, Class)instead.