public final class ImmutableRuntimeSourceModel extends ImmutableSourceModel implements RuntimeSourceModel
SourceModel| Constructor and Description |
|---|
ImmutableRuntimeSourceModel(String name,
String description,
List<ParameterModel> parameterModels,
OutputModel output,
OutputModel outputAttributes,
SourceFactory sourceFactory,
Set<ModelProperty> modelProperties,
List<InterceptorFactory> interceptorFactories,
Optional<ExceptionEnricherFactory> exceptionEnricherFactory,
MetadataResolverFactory metadataResolverFactory)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
Optional<ExceptionEnricherFactory> |
getExceptionEnricherFactory() |
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() |
SourceFactory |
getSourceFactory() |
getOutput, getOutputAttributesgetParameterModelscheckArgument, equals, getName, hashCode, toStringgetDescription, getModelProperties, getModelPropertyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOutput, getOutputAttributesgetModelProperties, getModelPropertygetParameterModelspublic ImmutableRuntimeSourceModel(String name, String description, List<ParameterModel> parameterModels, OutputModel output, OutputModel outputAttributes, SourceFactory sourceFactory, Set<ModelProperty> modelProperties, List<InterceptorFactory> interceptorFactories, Optional<ExceptionEnricherFactory> exceptionEnricherFactory, MetadataResolverFactory metadataResolverFactory)
name - the source name. Cannot be blankdescription - the source descriptionparameterModels - a List with the source's parameterModelsoutput - an OutputModel which represents the operation's output contentoutputAttributes - an OutputModel which represents the attributes on the output mesourceFactory - a SourceFactory used to create instances of Source which are consistent with this modelmodelProperties - 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 that creates a concrete ExceptionEnricher instancemetadataResolverFactory - a MetadataResolverFactory to create the associated MetadataKeysResolver, MetadataContentResolver and MetadataOutputResolverIllegalArgumentException - if name is blank or sourceFactory is nullpublic SourceFactory getSourceFactory()
getSourceFactory in interface RuntimeSourceModelSourceFactory used to create instances of Source which are compliant with this modelpublic 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.