public final class ImmutableRuntimeOperationModel extends ImmutableOperationModel implements RuntimeOperationModel
OperationModel| Constructor and Description |
|---|
ImmutableRuntimeOperationModel(String name,
String description,
OperationExecutorFactory executorFactory,
List<ParameterModel> parameterModels,
OutputModel output,
OutputModel outputAttributes,
Set<ModelProperty> modelProperties,
List<InterceptorFactory> interceptorFactories,
Optional<ExceptionEnricherFactory> exceptionEnricherFactory,
MetadataResolverFactory metadataResolverFactory)
Creates a new instance with the given state
|
| Modifier and Type | Method and Description |
|---|---|
Optional<ExceptionEnricherFactory> |
getExceptionEnricherFactory() |
OperationExecutorFactory |
getExecutor()
Provides a
OperationExecutor for this operation. |
List<InterceptorFactory> |
getInterceptorFactories()
Returns a
List which items are InterceptorFactory instances
that are to be used to provision the interceptors for the
configurations created from this model. |
MetadataResolverFactory |
getMetadataResolverFactory() |
getOutput, getOutputAttributesgetParameterModelscheckArgument, equals, getName, hashCode, toStringgetDescription, getModelProperties, getModelPropertyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOutputAttributesgetOutputgetModelProperties, getModelPropertygetParameterModelspublic ImmutableRuntimeOperationModel(String name, String description, OperationExecutorFactory executorFactory, List<ParameterModel> parameterModels, OutputModel output, OutputModel outputAttributes, Set<ModelProperty> modelProperties, List<InterceptorFactory> interceptorFactories, Optional<ExceptionEnricherFactory> exceptionEnricherFactory, MetadataResolverFactory metadataResolverFactory)
name - the operation's name. Cannot be blankdescription - the operation's descriptorexecutorFactory - a OperationExecutorFactory. Cannot be nullparameterModels - a List with the operation's parameterModelsoutput - an OutputModel which represents the operation's output contentoutputAttributes - an OutputModel which represents the attributes on the output MessagemodelProperties - a Set of custom properties which extend this modelinterceptorFactories - a List with the InterceptorFactory instances that should be applied to instances built from this modelexceptionEnricherFactory - an Optional ExceptionEnricherFactory to create an ExceptionEnricher instancemetadataResolverFactory - a MetadataResolverFactory to create the associated MetadataKeysResolver,
MetadataContentResolver and MetadataOutputResolverIllegalArgumentException - if name is blank or executorFactory is nullpublic OperationExecutorFactory getExecutor()
OperationExecutor for this operation.getExecutor in interface RuntimeOperationModelOperationExecutorpublic Optional<ExceptionEnricherFactory> getExceptionEnricherFactory()
getExceptionEnricherFactory in interface ExceptionEnrichableModelOptional concrete ExceptionEnricherFactorypublic List<InterceptorFactory> getInterceptorFactories()
List which items are InterceptorFactory instances
that are to be used to provision the interceptors for the
configurations created from this model.
The order of the factories in the list will be the same as the order of the resulting
interceptors. However, just like it's explained in the
Interceptable interface, the order is not guaranteed to be respected although
it should be expressed anyway.
getInterceptorFactories in interface InterceptableModelList. Can be empty but must never be nullpublic MetadataResolverFactory getMetadataResolverFactory()
getMetadataResolverFactory in interface MetadataEnrichableModelMetadataResolverFactory required to instantiate the
MetadataKeysResolver, MetadataContentResolver and MetadataOutputResolver
associated to this component's model.Copyright © 2016 MuleSoft, Inc.. All rights reserved.