Module org.mule.runtime.dsl.api
Class ComponentBuildingDefinition<T>
java.lang.Object
org.mule.runtime.dsl.api.component.ComponentBuildingDefinition<T>
- Type Parameters:
T- the actual type of the runtime object to be created.
Defines the mapping between a component configuration and how the object that represents that model in runtime is created.
- Since:
- 4.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forComponentBuildingDefinition -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.mule.runtime.api.component.ComponentIdentifierClass<? extends ObjectFactory<T>>booleanDeprecated.since 4.4.booleanisNamed()booleanbooleanisScope()
-
Field Details
-
TYPE_CONVERTER_AND_UNKNOWN_TYPE_MESSAGE
- See Also:
-
TYPE_CONVERTER_AND_NO_SIMPLE_TYPE_MESSAGE_TEMPLATE
- See Also:
-
KEY_TYPE_CONVERTER_AND_NO_MAP_TYPE
- See Also:
-
-
Method Details
-
getTypeDefinition
- Returns:
- a definition for the object type that must be created for this component
-
isScope
public boolean isScope()- Returns:
- true if the building definition is an scope of message processors
-
getConstructorAttributeDefinition
- Returns:
- an ordered list of the constructor parameters that must be set to create the domain object
-
getSetterParameterDefinitions
- Returns:
- a list of the attributes and its definitions that may contain configuration for the domain object to be created.
-
getIgnoredConfigurationParameters
-
getObjectFactoryType
- Returns:
- the factory for the domain object. For complex object creations it's possible to define an object builder that will end up creating the domain object.
-
isPrototype
public boolean isPrototype()- Returns:
- if the object is a prototype or a singleton
-
getComponentIdentifier
public org.mule.runtime.api.component.ComponentIdentifier getComponentIdentifier()- Returns:
- the unique identifier for this component
-
getTypeConverter
- Returns:
- a converter to be applied to the configuration value.
-
getKeyTypeConverter
- Returns:
- a converter to be applied to the configuration key when the element is a map entry.
-
isAlwaysEnabled
Deprecated.since 4.4. No longer used. stereotypes are used to determine this.- Returns:
- if the component should be enabled even if excluded when building a partial application model
-
isNamed
public boolean isNamed()- Returns:
- whether the defined component has a name attribute
-
getRegistrationName
- Returns:
- a name if the component is a global singleton, otherwise null
-
getAttributesDefinitions
- Returns:
- the complete list of
AttributeDefinitions
-