java.lang.Object
org.mule.runtime.dsl.api.component.TypeDefinition<T>
- Type Parameters:
T- the actual type of the runtime object to be created.
Defines the actual
Class for the domain object to be created.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInstances of this class represent the type of a map entry. -
Method Summary
Modifier and TypeMethodDescriptioncheckingThatIsClassOrInheritsFrom(Class<?> inforcedClass) static <T> TypeDefinition<T>fromConfigurationAttribute(String configAttributeName) Deprecated.type definitions shouldn't be created from attributes passed in the artifact config.static <T> TypeDefinition<T>fromConfigurationAttribute(String configGroupName, String configAttributeName) Deprecated.type definitions shouldn't be created from attributes passed in the artifact config.static <T,K, V> TypeDefinition<T> fromMapEntryType(Class<K> keyType, Class<V> valueType) static <T> TypeDefinition<T>Defines the object type that will be created for the component.voidvisit(TypeDefinitionVisitor typeDefinitionVisitor)
-
Method Details
-
fromType
Defines the object type that will be created for the component. Only instantiable types are allowed with the exception ofCollection,List,Setinterfaces. In those cases the runtime will use a default implementation.- Parameters:
type-Classof the domain model to be created.- Returns:
TypeDefinitioncreated from that type.
-
fromConfigurationAttribute
@Deprecated public static <T> TypeDefinition<T> fromConfigurationAttribute(String configAttributeName) Deprecated.type definitions shouldn't be created from attributes passed in the artifact config.- Parameters:
configAttributeName- name of the configuration attribute that defines the domain object type.- Returns:
TypeDefinitioncreated from that type.
-
fromConfigurationAttribute
@Deprecated public static <T> TypeDefinition<T> fromConfigurationAttribute(String configGroupName, String configAttributeName) Deprecated.type definitions shouldn't be created from attributes passed in the artifact config.- Parameters:
configAttributeName- name of the configuration attribute that defines the domain object type.- Returns:
TypeDefinitioncreated from that type.
-
checkingThatIsClassOrInheritsFrom
- Parameters:
inforcedClass- class to be checked as the same or a super class of the type if defined as a config attribute- Returns:
TypeDefinitionwhith className set.
-
visit
-
fromMapEntryType
-