public abstract class AbstractExecutableComponentModel extends AbstractComponentModel implements ConnectableComponentModel, HasNotifications
ComponentModel
description, modelProperties
Modifier | Constructor and Description |
---|---|
protected |
AbstractExecutableComponentModel(String name,
String description,
List<ParameterGroupModel> parameterGroupModels,
OutputModel output,
OutputModel outputAttributes,
boolean requiresConnection,
boolean transactional,
boolean supportsStreaming,
DisplayModel displayModel,
Set<ErrorModel> errors,
StereotypeModel stereotype,
Set<ModelProperty> modelProperties,
List<? extends NestableElementModel> nestedComponents)
Deprecated.
This constructor is deprecated and will be removed in Mule 5. Use
AbstractExecutableComponentModel(String, String, List, OutputModel, OutputModel, boolean, boolean, boolean, DisplayModel, Set, StereotypeModel, Set, List, Set)
instead |
protected |
AbstractExecutableComponentModel(String name,
String description,
List<ParameterGroupModel> parameterGroupModels,
OutputModel output,
OutputModel outputAttributes,
boolean requiresConnection,
boolean transactional,
boolean supportsStreaming,
DisplayModel displayModel,
Set<ErrorModel> errors,
StereotypeModel stereotype,
Set<ModelProperty> modelProperties,
List<? extends NestableElementModel> nestedComponents,
Set<NotificationModel> notifications)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
Set<NotificationModel> |
getNotificationModels() |
OutputModel |
getOutput()
Returns a
MetadataType for the value that this component sets
on the output Message.getPayload() field. |
OutputModel |
getOutputAttributes()
Returns a
OutputModel for the value that this operation sets
on the output attributes of the message. |
boolean |
isTransactional() |
boolean |
requiresConnection() |
boolean |
supportsStreaming()
Indicates if this component supports streaming.
|
getErrorModels, getNestedComponents
getStereotype
getParameterGroupModels
checkArgument, equals, getDisplayModel, getName, hashCode, toString
copy, copy, getDescription, getModelProperties, getModelProperty
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept
getAllParameterModels, getParameterGroupModels
getDescription
getNestedComponents
getName
getStereotype
getModelProperties, getModelProperty
getDisplayModel
getErrorModels
@Deprecated protected AbstractExecutableComponentModel(String name, String description, List<ParameterGroupModel> parameterGroupModels, OutputModel output, OutputModel outputAttributes, boolean requiresConnection, boolean transactional, boolean supportsStreaming, DisplayModel displayModel, Set<ErrorModel> errors, StereotypeModel stereotype, Set<ModelProperty> modelProperties, List<? extends NestableElementModel> nestedComponents)
AbstractExecutableComponentModel(String, String, List, OutputModel, OutputModel, boolean, boolean, boolean, DisplayModel, Set, StereotypeModel, Set, List, Set)
insteadname
- the model's namedescription
- the model's descriptionparameterGroupModels
- a List
with the source's parameter group models
output
- an OutputModel
which represents the component's output contentoutputAttributes
- an OutputModel
which represents the component's attributes on the output Message
requiresConnection
- whether this component requires connectivitytransactional
- whether this component supports transactionssupportsStreaming
- whether this component supports streamingdisplayModel
- a model which contains directive about how this component is displayed in the UIstereotype
- the stereotype
of this componentmodelProperties
- A Set
of custom properties which extend this modelnestedComponents
- a List
with the components contained by this modelIllegalArgumentException
- if name
is blankprotected AbstractExecutableComponentModel(String name, String description, List<ParameterGroupModel> parameterGroupModels, OutputModel output, OutputModel outputAttributes, boolean requiresConnection, boolean transactional, boolean supportsStreaming, DisplayModel displayModel, Set<ErrorModel> errors, StereotypeModel stereotype, Set<ModelProperty> modelProperties, List<? extends NestableElementModel> nestedComponents, Set<NotificationModel> notifications)
name
- the model's namedescription
- the model's descriptionparameterGroupModels
- a List
with the source's parameter group models
output
- an OutputModel
which represents the component's output contentoutputAttributes
- an OutputModel
which represents the component's attributes on the output Message
requiresConnection
- whether this component requires connectivitytransactional
- whether this component supports transactionssupportsStreaming
- whether this component supports streamingdisplayModel
- a model which contains directive about how this component is displayed in the UIstereotype
- the stereotype
of this componentmodelProperties
- A Set
of custom properties which extend this modelnestedComponents
- a List
with the components contained by this modelnotifications
- A Set
of NotificationModel
which describes the component's notificationsIllegalArgumentException
- if name
is blankpublic OutputModel getOutput()
MetadataType
for the value that this component sets
on the output Message.getPayload()
field.
If this executable component does not modify the payload of the Message
,
then a VoidType
will be associated to the returned OutputModel
.
This, however, does not mean that the property will be set to null
on the message,
it means that whatever value it had before the component was executed will be preserved after it returns.
getOutput
in interface HasOutputModel
MetadataType
representing the content type for the output messagespublic OutputModel getOutputAttributes()
OutputModel
for the value that this operation sets
on the output attributes
of the message.
If this executable component does not modify the attributes of the Message
,
then a VoidType
will be associated to the returned OutputModel
.
This, however, does not mean that the property will be set to null
on the message,
it means that whatever value it had before the component was executed will be preserved after it returns.
getOutputAttributes
in interface HasOutputModel
OutputModel
representing the attribute types for the output messagespublic boolean isTransactional()
isTransactional
in interface ConnectableComponentModel
public boolean requiresConnection()
requiresConnection
in interface ConnectableComponentModel
public boolean supportsStreaming()
Notice that supporting streaming doesn't necessarily mean that streaming will be performed each time the component is executed
supportsStreaming
in interface ConnectableComponentModel
public Set<NotificationModel> getNotificationModels()
getNotificationModels
in interface HasNotifications
Set
of NotificationModel
with the notifications that the current component fires.NotificationModel
Copyright © 2018. All rights reserved.