Search in sources :

Example 6 with ParameterObjectValue

use of org.mule.runtime.app.declaration.api.fluent.ParameterObjectValue in project mule by mulesoft.

the class InfrastructureElementModelDelegate method createStreamingStrategy.

private void createStreamingStrategy(ParameterValue value, ParameterModel parameterModel, DslElementSyntax paramDsl, InternalComponentConfiguration.Builder parentConfig, DslElementModel.Builder parentElement) {
    ParameterObjectValue objectValue = (ParameterObjectValue) value;
    checkArgument(!isBlank(objectValue.getTypeId()), "Missing declaration of which streaming strategy to use");
    String namespace = eeStreamingStrategies.contains(objectValue.getTypeId()) ? EE_PREFIX : CORE_PREFIX;
    cloneDeclarationToElement(parameterModel, paramDsl, parentConfig, parentElement, objectValue, objectValue.getTypeId(), namespace);
}
Also used : ParameterObjectValue(org.mule.runtime.app.declaration.api.fluent.ParameterObjectValue)

Aggregations

ObjectType (org.mule.metadata.api.model.ObjectType)4 ParameterObjectValue (org.mule.runtime.app.declaration.api.fluent.ParameterObjectValue)4 List (java.util.List)3 Map (java.util.Map)3 Optional (java.util.Optional)3 Function (java.util.function.Function)3 Collectors.toList (java.util.stream.Collectors.toList)3 ArrayType (org.mule.metadata.api.model.ArrayType)3 MetadataType (org.mule.metadata.api.model.MetadataType)3 MetadataTypeVisitor (org.mule.metadata.api.visitor.MetadataTypeVisitor)3 DslResolvingContext (org.mule.runtime.api.dsl.DslResolvingContext)3 ComponentModel (org.mule.runtime.api.meta.model.ComponentModel)3 ComposableModel (org.mule.runtime.api.meta.model.ComposableModel)3 ExtensionModel (org.mule.runtime.api.meta.model.ExtensionModel)3 ConfigurationModel (org.mule.runtime.api.meta.model.config.ConfigurationModel)3 ConnectionProviderModel (org.mule.runtime.api.meta.model.connection.ConnectionProviderModel)3 ConstructModel (org.mule.runtime.api.meta.model.construct.ConstructModel)3 HasConstructModels (org.mule.runtime.api.meta.model.construct.HasConstructModels)3 NestedRouteModel (org.mule.runtime.api.meta.model.nested.NestedRouteModel)3 HasOperationModels (org.mule.runtime.api.meta.model.operation.HasOperationModels)3