Search in sources :

Example 1 with SCHEDULING_STRATEGY_ELEMENT_IDENTIFIER

use of org.mule.runtime.internal.dsl.DslConstants.SCHEDULING_STRATEGY_ELEMENT_IDENTIFIER in project mule by mulesoft.

the class PollingSourceDeclarationEnricher method enrich.

@Override
public void enrich(ExtensionLoadingContext extensionLoadingContext) {
    ClassTypeLoader loader = ExtensionsTypeLoaderFactory.getDefault().createTypeLoader();
    ExtensionDeclarer extensionDeclarer = extensionLoadingContext.getExtensionDeclarer();
    Reference<Boolean> thereArePollingSources = new Reference<>(false);
    new IdempotentDeclarationWalker() {

        @Override
        protected void onSource(SourceDeclaration source) {
            extractType(source).ifPresent(type -> {
                if (type.isAssignableTo(PollingSource.class)) {
                    source.setRunsOnPrimaryNodeOnly(true);
                    ParameterDeclaration parameter = new ParameterDeclaration(SCHEDULING_STRATEGY_PARAMETER_NAME);
                    parameter.setDescription(SCHEDULING_STRATEGY_PARAMETER_DESCRIPTION);
                    parameter.setRequired(true);
                    parameter.setType(loader.load(Scheduler.class), false);
                    parameter.setExpressionSupport(NOT_SUPPORTED);
                    parameter.addModelProperty(new InfrastructureParameterModelProperty(10));
                    parameter.addModelProperty(new QNameModelProperty(new QName(CORE_NAMESPACE, SCHEDULING_STRATEGY_ELEMENT_IDENTIFIER, CORE_PREFIX)));
                    parameter.setDslConfiguration(ParameterDslConfiguration.builder().allowsInlineDefinition(true).allowsReferences(false).allowTopLevelDefinition(false).build());
                    thereArePollingSources.set(true);
                    source.getParameterGroup(DEFAULT_GROUP_NAME).addParameter(parameter);
                }
            });
        }
    }.walk(extensionDeclarer.getDeclaration());
    if (thereArePollingSources.get() && !isSchedulerAlreadyImported(extensionDeclarer.getDeclaration())) {
        ClassTypeLoader typeLoader = ExtensionsTypeLoaderFactory.getDefault().createTypeLoader();
        extensionDeclarer.withImportedType(new ImportedTypeModel((ObjectType) typeLoader.load(Scheduler.class)));
    }
}
Also used : InfrastructureParameterModelProperty(org.mule.runtime.extension.api.property.InfrastructureParameterModelProperty) ParameterDeclaration(org.mule.runtime.api.meta.model.declaration.fluent.ParameterDeclaration) CORE_PREFIX(org.mule.runtime.internal.dsl.DslConstants.CORE_PREFIX) ImportedTypeModel(org.mule.runtime.api.meta.model.ImportedTypeModel) PollingSource(org.mule.runtime.extension.api.runtime.source.PollingSource) ExtensionsTypeLoaderFactory(org.mule.runtime.extension.api.declaration.type.ExtensionsTypeLoaderFactory) QNameModelProperty(org.mule.runtime.extension.api.property.QNameModelProperty) CORE_NAMESPACE(org.mule.runtime.internal.dsl.DslConstants.CORE_NAMESPACE) DEFAULT_GROUP_NAME(org.mule.runtime.api.meta.model.parameter.ParameterGroupModel.DEFAULT_GROUP_NAME) MetadataTypeUtils.getTypeId(org.mule.metadata.api.utils.MetadataTypeUtils.getTypeId) ClassTypeLoader(org.mule.metadata.api.ClassTypeLoader) DeclarationEnricher(org.mule.runtime.extension.api.loader.DeclarationEnricher) SourceDeclaration(org.mule.runtime.api.meta.model.declaration.fluent.SourceDeclaration) ParameterDslConfiguration(org.mule.runtime.api.meta.model.ParameterDslConfiguration) SCHEDULING_STRATEGY_PARAMETER_NAME(org.mule.runtime.extension.api.ExtensionConstants.SCHEDULING_STRATEGY_PARAMETER_NAME) ObjectType(org.mule.metadata.api.model.ObjectType) DeclarationEnricherPhase(org.mule.runtime.extension.api.loader.DeclarationEnricherPhase) ExtensionDeclaration(org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclaration) ExtensionLoadingContext(org.mule.runtime.extension.api.loader.ExtensionLoadingContext) STRUCTURE(org.mule.runtime.extension.api.loader.DeclarationEnricherPhase.STRUCTURE) SCHEDULING_STRATEGY_PARAMETER_DESCRIPTION(org.mule.runtime.extension.api.ExtensionConstants.SCHEDULING_STRATEGY_PARAMETER_DESCRIPTION) Scheduler(org.mule.runtime.core.api.source.scheduler.Scheduler) Reference(org.mule.runtime.api.util.Reference) MetadataType(org.mule.metadata.api.model.MetadataType) ExtensionDeclarer(org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclarer) QName(javax.xml.namespace.QName) NOT_SUPPORTED(org.mule.runtime.api.meta.ExpressionSupport.NOT_SUPPORTED) SCHEDULING_STRATEGY_ELEMENT_IDENTIFIER(org.mule.runtime.internal.dsl.DslConstants.SCHEDULING_STRATEGY_ELEMENT_IDENTIFIER) IdempotentDeclarationWalker(org.mule.runtime.extension.api.declaration.fluent.util.IdempotentDeclarationWalker) QNameModelProperty(org.mule.runtime.extension.api.property.QNameModelProperty) Reference(org.mule.runtime.api.util.Reference) QName(javax.xml.namespace.QName) Scheduler(org.mule.runtime.core.api.source.scheduler.Scheduler) PollingSource(org.mule.runtime.extension.api.runtime.source.PollingSource) InfrastructureParameterModelProperty(org.mule.runtime.extension.api.property.InfrastructureParameterModelProperty) ObjectType(org.mule.metadata.api.model.ObjectType) ClassTypeLoader(org.mule.metadata.api.ClassTypeLoader) ImportedTypeModel(org.mule.runtime.api.meta.model.ImportedTypeModel) ExtensionDeclarer(org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclarer) IdempotentDeclarationWalker(org.mule.runtime.extension.api.declaration.fluent.util.IdempotentDeclarationWalker) ParameterDeclaration(org.mule.runtime.api.meta.model.declaration.fluent.ParameterDeclaration) SourceDeclaration(org.mule.runtime.api.meta.model.declaration.fluent.SourceDeclaration)

Example 2 with SCHEDULING_STRATEGY_ELEMENT_IDENTIFIER

use of org.mule.runtime.internal.dsl.DslConstants.SCHEDULING_STRATEGY_ELEMENT_IDENTIFIER in project mule by mulesoft.

the class CoreComponentBuildingDefinitionProvider method getComponentBuildingDefinitions.

@Override
public List<ComponentBuildingDefinition> getComponentBuildingDefinitions() {
    LinkedList<ComponentBuildingDefinition> componentBuildingDefinitions = new LinkedList<>();
    AttributeDefinition messageProcessorListAttributeDefinition = fromChildCollectionConfiguration(Processor.class).build();
    ComponentBuildingDefinition.Builder onErrorBaseBuilder = baseDefinition.withSetterParameterDefinition(MESSAGE_PROCESSORS, messageProcessorListAttributeDefinition).withSetterParameterDefinition(WHEN, fromSimpleParameter(WHEN).build()).withSetterParameterDefinition(ERROR_TYPE, fromSimpleParameter(TYPE).build()).withSetterParameterDefinition(LOG_EXCEPTION, fromSimpleParameter(LOG_EXCEPTION).withDefaultValue("true").build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(ON_ERROR).withTypeDefinition(fromType(TemplateOnErrorHandler.class)).withObjectFactoryType(OnErrorFactoryBean.class).withConstructorParameterDefinition(fromSimpleReferenceParameter("ref").build()).build());
    componentBuildingDefinitions.add(onErrorBaseBuilder.withIdentifier(ON_ERROR_CONTINUE).withTypeDefinition(fromType(OnErrorContinueHandler.class)).asPrototype().build());
    componentBuildingDefinitions.add(onErrorBaseBuilder.withIdentifier(ON_ERROR_PROPAGATE).withTypeDefinition(fromType(OnErrorPropagateHandler.class)).asPrototype().build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(ERROR_HANDLER).withTypeDefinition(fromType(ErrorHandler.class)).withObjectFactoryType(ErrorHandlerFactoryBean.class).withSetterParameterDefinition("delegate", fromSimpleReferenceParameter("ref").build()).withSetterParameterDefinition(NAME, fromSimpleParameter(NAME).build()).withSetterParameterDefinition("exceptionListeners", fromChildCollectionConfiguration(FlowExceptionHandler.class).build()).asPrototype().build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(SET_PAYLOAD).withTypeDefinition(fromType(SetPayloadMessageProcessor.class)).withSetterParameterDefinition("value", fromSimpleParameter("value").build()).withSetterParameterDefinition("mimeType", fromSimpleParameter("mimeType").build()).withSetterParameterDefinition("encoding", fromSimpleParameter("encoding").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(LOGGER).withTypeDefinition(fromType(LoggerMessageProcessor.class)).withSetterParameterDefinition("message", fromSimpleParameter("message").build()).withSetterParameterDefinition("category", fromSimpleParameter("category").build()).withSetterParameterDefinition("level", fromSimpleParameter("level").build()).build());
    componentBuildingDefinitions.add(getSetVariablePropertyBaseBuilder(getAddVariableTransformerInstanceFactory(AddFlowVariableProcessor.class), AddFlowVariableProcessor.class, newBuilder().withKey("identifier").withAttributeDefinition(fromSimpleParameter("variableName").build()).build(), newBuilder().withKey("value").withAttributeDefinition(fromSimpleParameter("value").build()).build()).withIdentifier("set-variable").withTypeDefinition(fromType(AddFlowVariableProcessor.class)).build());
    componentBuildingDefinitions.add(getCoreMuleMessageTransformerBaseBuilder().withIdentifier("remove-variable").withTypeDefinition(fromType(RemoveFlowVariableProcessor.class)).withSetterParameterDefinition("identifier", fromSimpleParameter("variableName").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("global-property").withTypeDefinition(fromType(String.class)).withConstructorParameterDefinition(fromSimpleParameter("value").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(TRANSFORMER).withTypeDefinition(fromType(Transformer.class)).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(CUSTOM_PROCESSOR).withTypeDefinition(fromConfigurationAttribute(CLASS_ATTRIBUTE).checkingThatIsClassOrInheritsFrom(MESSAGE_PROCESSOR_CLASS)).asPrototype().build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(PROCESSOR_CHAIN).withTypeDefinition(fromType(AnnotatedProcessor.class)).withObjectFactoryType(MessageProcessorChainObjectFactory.class).withSetterParameterDefinition(MESSAGE_PROCESSORS, fromChildCollectionConfiguration(Processor.class).build()).asPrototype().build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(ROUTE).withTypeDefinition(fromType(MessageProcessorChain.class)).withObjectFactoryType(MessageProcessorChainFactoryBean.class).withSetterParameterDefinition(MESSAGE_PROCESSORS, fromChildCollectionConfiguration(Processor.class).build()).asPrototype().build());
    addModuleOperationChainParser(componentBuildingDefinitions);
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(SUB_FLOW).withTypeDefinition(fromType(MessageProcessorChain.class)).withObjectFactoryType(SubflowMessageProcessorChainFactoryBean.class).withSetterParameterDefinition(MESSAGE_PROCESSORS, fromChildCollectionConfiguration(Processor.class).build()).withSetterParameterDefinition(NAME, fromSimpleParameter(NAME).build()).asPrototype().build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(RESPONSE).withTypeDefinition(fromType(ResponseMessageProcessorAdapter.class)).withObjectFactoryType(ResponseMessageProcessorsFactoryBean.class).withSetterParameterDefinition(MESSAGE_PROCESSORS, fromChildCollectionConfiguration(Processor.class).build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(FLOW).withTypeDefinition(fromType(Flow.class)).withObjectFactoryType(DefaultFlowFactoryBean.class).withSetterParameterDefinition(NAME, fromSimpleParameter(NAME).build()).withSetterParameterDefinition("muleContext", fromReferenceObject(MuleContext.class).build()).withSetterParameterDefinition("initialState", fromSimpleParameter("initialState").withDefaultValue(INITIAL_STATE_STARTED).build()).withSetterParameterDefinition("messageSource", fromChildConfiguration(MessageSource.class).build()).withSetterParameterDefinition(MESSAGE_PROCESSORS, fromChildCollectionConfiguration(Processor.class).build()).withSetterParameterDefinition(EXCEPTION_LISTENER_ATTRIBUTE, fromChildConfiguration(FlowExceptionHandler.class).build()).withSetterParameterDefinition("maxConcurrency", fromSimpleParameter("maxConcurrency").build()).build());
    Builder processorRefBuilder = baseDefinition.withTypeDefinition(fromType(AnnotatedProcessor.class)).withObjectFactoryType(FlowRefFactoryBean.class).withSetterParameterDefinition("muleContext", fromReferenceObject(MuleContext.class).build());
    componentBuildingDefinitions.add(processorRefBuilder.withIdentifier(FLOW_REF).withSetterParameterDefinition("name", fromSimpleParameter("name").build()).withSetterParameterDefinition("target", fromSimpleParameter("target").build()).withSetterParameterDefinition("targetValue", fromSimpleParameter("targetValue").withDefaultValue("#[payload]").build()).build());
    componentBuildingDefinitions.add(processorRefBuilder.withIdentifier(PROCESSOR).withSetterParameterDefinition("name", fromSimpleParameter("ref").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(COLLECT_LIST).withTypeDefinition(fromType(CollectListForkJoinStrategyFactory.class)).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(SCATTER_GATHER).withTypeDefinition(fromType(ScatterGatherRouter.class)).withSetterParameterDefinition("timeout", fromSimpleParameter("timeout").build()).withSetterParameterDefinition("maxConcurrency", fromSimpleParameter("maxConcurrency").build()).withSetterParameterDefinition("target", fromSimpleParameter("target").build()).withSetterParameterDefinition("targetValue", fromSimpleParameter("targetValue").withDefaultValue("#[payload]").build()).withSetterParameterDefinition(ROUTES, fromChildCollectionConfiguration(MessageProcessorChain.class).build()).withSetterParameterDefinition(FORK_JOIN_STRATEGY, fromChildConfiguration(ForkJoinStrategyFactory.class).build()).asScope().build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(SPLIT_AGGREGATE).withTypeDefinition(fromType(SplitAggregateScope.class)).withSetterParameterDefinition("collectionExpression", fromChildConfiguration(String.class).withIdentifier("collection").build()).withSetterParameterDefinition("timeout", fromSimpleParameter("timeout").build()).withSetterParameterDefinition("maxConcurrency", fromSimpleParameter("maxConcurrency").build()).withSetterParameterDefinition("target", fromSimpleParameter("target").build()).withSetterParameterDefinition("targetValue", fromSimpleParameter("targetValue").withDefaultValue("#[payload]").build()).withSetterParameterDefinition(MESSAGE_PROCESSORS, fromChildCollectionConfiguration(Processor.class).build()).asScope().build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("collection").withTypeDefinition(fromType(String.class)).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(ENRICHER).withObjectFactoryType(MessageEnricherObjectFactory.class).withTypeDefinition(fromType(MessageEnricher.class)).withSetterParameterDefinition("messageProcessor", fromChildConfiguration(Processor.class).build()).withSetterParameterDefinition("enrichExpressionPairs", fromChildCollectionConfiguration(MessageEnricher.EnrichExpressionPair.class).build()).withSetterParameterDefinition("source", fromSimpleParameter("source").build()).withSetterParameterDefinition("target", fromSimpleParameter("target").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("enrich").withTypeDefinition(fromType(MessageEnricher.EnrichExpressionPair.class)).withConstructorParameterDefinition(fromSimpleParameter("source").build()).withConstructorParameterDefinition(fromSimpleParameter("target").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(ASYNC).withTypeDefinition(fromType(AsyncDelegateMessageProcessor.class)).withObjectFactoryType(AsyncMessageProcessorsFactoryBean.class).withSetterParameterDefinition(MESSAGE_PROCESSORS, fromChildCollectionConfiguration(Processor.class).build()).withSetterParameterDefinition(NAME, fromSimpleParameter(NAME).build()).withSetterParameterDefinition("maxConcurrency", fromSimpleParameter("maxConcurrency").build()).build());
    // TODO MULE-12726 Remove TryProcessorFactoryBean
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(TRY).withTypeDefinition(fromType(TryScope.class)).withObjectFactoryType(TryProcessorFactoryBean.class).withSetterParameterDefinition("exceptionListener", fromChildConfiguration(FlowExceptionHandler.class).build()).withSetterParameterDefinition(MESSAGE_PROCESSORS, fromChildCollectionConfiguration(Processor.class).build()).withSetterParameterDefinition(TX_ACTION, fromSimpleParameter(TX_ACTION).withDefaultValue(ACTION_INDIFFERENT_STRING).build()).withSetterParameterDefinition(TX_TYPE, fromSimpleParameter(TX_TYPE, getTransactionTypeConverter()).withDefaultValue(LOCAL.name()).build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(UNTIL_SUCCESSFUL).withTypeDefinition(fromType(UntilSuccessful.class)).withSetterParameterDefinition("maxRetries", fromSimpleParameter("maxRetries").withDefaultValue(5).build()).withSetterParameterDefinition("millisBetweenRetries", fromSimpleParameter("millisBetweenRetries").withDefaultValue(60000).build()).withSetterParameterDefinition(MESSAGE_PROCESSORS, fromChildCollectionConfiguration(Processor.class).build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(FOREACH).withTypeDefinition(fromType(Foreach.class)).withSetterParameterDefinition("collectionExpression", fromSimpleParameter("collection").build()).withSetterParameterDefinition("batchSize", fromSimpleParameter("batchSize").build()).withSetterParameterDefinition("rootMessageVariableName", fromSimpleParameter("rootMessageVariableName").build()).withSetterParameterDefinition("counterVariableName", fromSimpleParameter("counterVariableName").build()).withSetterParameterDefinition(MESSAGE_PROCESSORS, fromChildCollectionConfiguration(Processor.class).build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(FIRST_SUCCESSFUL).withTypeDefinition(fromType(FirstSuccessful.class)).withSetterParameterDefinition(MESSAGE_PROCESSORS, fromChildCollectionConfiguration(MessageProcessorChain.class).build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(ROUND_ROBIN).withTypeDefinition(fromType(RoundRobin.class)).withSetterParameterDefinition(MESSAGE_PROCESSORS, fromChildCollectionConfiguration(MessageProcessorChain.class).build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(CHOICE).withTypeDefinition(fromType(ChoiceRouter.class)).withObjectFactoryType(ChoiceRouterObjectFactory.class).withSetterParameterDefinition("routes", fromChildCollectionConfiguration(MessageProcessorExpressionPair.class).build()).withSetterParameterDefinition("defaultRoute", fromChildConfiguration(MessageProcessorExpressionPair.class).build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(WHEN).withTypeDefinition(fromType(MessageProcessorExpressionPair.class)).withObjectFactoryType(MessageProcessorFilterPairFactoryBean.class).withSetterParameterDefinition(MESSAGE_PROCESSORS, fromChildCollectionConfiguration(Processor.class).build()).withSetterParameterDefinition("expression", fromSimpleParameter("expression").withDefaultValue("true").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(OTHERWISE).withTypeDefinition(fromType(MessageProcessorExpressionPair.class)).withObjectFactoryType(MessageProcessorFilterPairFactoryBean.class).withSetterParameterDefinition(MESSAGE_PROCESSORS, fromChildCollectionConfiguration(Processor.class).build()).withSetterParameterDefinition("expression", fromFixedValue("true").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("message-chunk-splitter").withTypeDefinition(fromType(MessageChunkSplitter.class)).withSetterParameterDefinition("messageSize", fromSimpleParameter("messageSize").build()).build());
    ComponentBuildingDefinition.Builder baseAggregatorDefinition = baseDefinition.withSetterParameterDefinition("timeout", fromSimpleParameter("timeout").build()).withSetterParameterDefinition("failOnTimeout", fromSimpleParameter("failOnTimeout").build()).withSetterParameterDefinition("processedGroupsObjectStore", fromSimpleReferenceParameter("processed-groups-object-store").build()).withSetterParameterDefinition("eventGroupsObjectStore", fromSimpleReferenceParameter("event-groups-object-store").build()).withSetterParameterDefinition("persistentStores", fromSimpleParameter("persistentStores").build()).withSetterParameterDefinition("storePrefix", fromSimpleParameter("storePrefix").build());
    componentBuildingDefinitions.add(baseAggregatorDefinition.withIdentifier("message-chunk-aggregator").withTypeDefinition(fromType(MessageChunkAggregator.class)).build());
    componentBuildingDefinitions.add(baseAggregatorDefinition.withIdentifier("collection-aggregator").withTypeDefinition(fromType(SimpleCollectionAggregator.class)).build());
    componentBuildingDefinitions.add(baseAggregatorDefinition.withIdentifier("resequencer").withTypeDefinition(fromType(Resequencer.class)).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("splitter").withTypeDefinition(fromType(Splitter.class)).withSetterParameterDefinition("expression", fromSimpleParameter("expression").build()).withSetterParameterDefinition("filterOnErrorType", fromSimpleParameter("filterOnErrorType").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(REQUEST_REPLY).withTypeDefinition(fromType(SimpleAsyncRequestReplyRequester.class)).withSetterParameterDefinition("messageProcessor", fromChildConfiguration(Processor.class).build()).withSetterParameterDefinition("messageSource", fromChildConfiguration(MessageSource.class).build()).withSetterParameterDefinition("timeout", fromSimpleParameter("timeout").build()).withSetterParameterDefinition("storePrefix", fromSimpleParameter("storePrefix").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(SCHEDULER).withTypeDefinition(fromType(DefaultSchedulerMessageSource.class)).withObjectFactoryType(SchedulingMessageSourceFactoryBean.class).withSetterParameterDefinition("disallowConcurrentExecution", fromSimpleParameter("disallowConcurrentExecution").withDefaultValue(true).build()).withSetterParameterDefinition("scheduler", fromChildConfiguration(PeriodicScheduler.class).withWrapperIdentifier(SCHEDULING_STRATEGY_ELEMENT_IDENTIFIER).build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(FIXED_FREQUENCY_STRATEGY_ELEMENT_IDENTIFIER).withTypeDefinition(fromType(FixedFrequencyScheduler.class)).withSetterParameterDefinition("frequency", fromSimpleParameter("frequency").build()).withSetterParameterDefinition("startDelay", fromSimpleParameter("startDelay").build()).withSetterParameterDefinition("timeUnit", fromSimpleParameter("timeUnit").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(CRON_STRATEGY_ELEMENT_IDENTIFIER).withTypeDefinition(fromType(CronScheduler.class)).withSetterParameterDefinition("expression", fromSimpleParameter("expression").build()).withSetterParameterDefinition("timeZone", fromSimpleParameter("timeZone").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("configuration").withTypeDefinition(fromType(MuleConfiguration.class)).withObjectFactoryType(MuleConfigurationConfigurator.class).withSetterParameterDefinition("defaultErrorHandlerName", fromSimpleParameter("defaultErrorHandler-ref").build()).withSetterParameterDefinition("defaultResponseTimeout", fromSimpleParameter("defaultResponseTimeout").build()).withSetterParameterDefinition("maxQueueTransactionFilesSize", fromSimpleParameter("maxQueueTransactionFilesSize").build()).withSetterParameterDefinition("defaultTransactionTimeout", fromSimpleParameter("defaultTransactionTimeout").build()).withSetterParameterDefinition("shutdownTimeout", fromSimpleParameter("shutdownTimeout").build()).withSetterParameterDefinition("defaultTransactionTimeout", fromSimpleParameter("defaultTransactionTimeout").build()).withSetterParameterDefinition("useExtendedTransformations", fromSimpleParameter("useExtendedTransformations").build()).withSetterParameterDefinition("flowEndingWithOneWayEndpointReturnsNull", fromSimpleParameter("flowEndingWithOneWayEndpointReturnsNull").build()).withSetterParameterDefinition("enricherPropagatesSessionVariableChanges", fromSimpleParameter("enricherPropagatesSessionVariableChanges").build()).withSetterParameterDefinition("defaultObjectSerializer", fromSimpleReferenceParameter("defaultObjectSerializer-ref").build()).withSetterParameterDefinition("extensions", fromChildCollectionConfiguration(ConfigurationExtension.class).build()).withSetterParameterDefinition("dynamicConfigExpiration", fromChildConfiguration(DynamicConfigExpiration.class).build()).withSetterParameterDefinition("extensions", fromChildCollectionConfiguration(Object.class).build()).alwaysEnabled(true).withRegistrationName(OBJECT_MULE_CONFIGURATION).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("dynamic-config-expiration").withTypeDefinition(fromType(DynamicConfigExpiration.class)).withObjectFactoryType(DynamicConfigExpirationObjectFactory.class).withConstructorParameterDefinition(fromSimpleParameter("frequency").withDefaultValue(DYNAMIC_CONFIG_EXPIRATION_FREQUENCY.getTime()).build()).withConstructorParameterDefinition(fromSimpleParameter("timeUnit", value -> TimeUnit.valueOf((String) value)).withDefaultValue(DYNAMIC_CONFIG_EXPIRATION_FREQUENCY.getUnit()).build()).withSetterParameterDefinition("expirationPolicy", fromChildConfiguration(ExpirationPolicy.class).build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("expiration-policy").withTypeDefinition(fromType(ExpirationPolicy.class)).withObjectFactoryType(ExpirationPolicyObjectFactory.class).withSetterParameterDefinition("maxIdleTime", fromSimpleParameter("maxIdleTime").withDefaultValue(DYNAMIC_CONFIG_EXPIRATION_FREQUENCY.getTime()).build()).withSetterParameterDefinition("timeUnit", fromSimpleParameter("timeUnit", value -> TimeUnit.valueOf((String) value)).withDefaultValue(DYNAMIC_CONFIG_EXPIRATION_FREQUENCY.getUnit()).build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("notifications").withTypeDefinition(fromType(ServerNotificationManagerConfigurator.class)).withSetterParameterDefinition("notificationDynamic", fromSimpleParameter("dynamic").build()).withSetterParameterDefinition("enabledNotifications", fromChildCollectionConfiguration(NotificationConfig.EnabledNotificationConfig.class).build()).withSetterParameterDefinition("disabledNotifications", fromChildCollectionConfiguration(NotificationConfig.DisabledNotificationConfig.class).build()).withSetterParameterDefinition("notificationListeners", fromChildCollectionConfiguration(ListenerSubscriptionPair.class).build()).build());
    ComponentBuildingDefinition.Builder baseNotificationDefinition = baseDefinition.withSetterParameterDefinition("interfaceName", fromSimpleParameter("interface").build()).withSetterParameterDefinition("eventName", fromSimpleParameter("event").build()).withSetterParameterDefinition("interfaceClass", fromSimpleParameter("interface-class").build()).withSetterParameterDefinition("eventClass", fromSimpleParameter("event-class").build());
    componentBuildingDefinitions.add(baseNotificationDefinition.withTypeDefinition(fromType(NotificationConfig.EnabledNotificationConfig.class)).withIdentifier("notification").build());
    componentBuildingDefinitions.add(baseNotificationDefinition.withTypeDefinition(fromType(NotificationConfig.DisabledNotificationConfig.class)).withIdentifier("disable-notification").build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("notification-listener").withTypeDefinition(fromType(ListenerSubscriptionPair.class)).withConstructorParameterDefinition(fromSimpleReferenceParameter("ref").build()).withConstructorParameterDefinition(fromSimpleParameter("subscription", getNotificationSubscriptionConverter()).withDefaultValue(ANY_SELECTOR_STRING).build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("username-password-filter").withTypeDefinition(fromType(UsernamePasswordAuthenticationFilter.class)).withSetterParameterDefinition("username", fromSimpleParameter("username").build()).withSetterParameterDefinition("password", fromSimpleParameter("password").build()).withIgnoredConfigurationParameter(NAME).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("custom-security-filter").withTypeDefinition(fromType(Processor.class)).withObjectFactoryType(CustomSecurityFilterObjectFactory.class).withConstructorParameterDefinition(fromSimpleReferenceParameter("ref").build()).withIgnoredConfigurationParameter(NAME).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("encryption-security-filter").withTypeDefinition(fromType(MuleEncryptionEndpointSecurityFilter.class)).withConstructorParameterDefinition(fromSimpleReferenceParameter("strategy-ref").build()).withIgnoredConfigurationParameter(NAME).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("security-manager").withTypeDefinition(fromType(SecurityManager.class)).withObjectFactoryType(MuleSecurityManagerConfigurator.class).withSetterParameterDefinition("muleContext", fromReferenceObject(MuleContext.class).build()).withSetterParameterDefinition("name", fromSimpleParameter("name").build()).withSetterParameterDefinition("providers", fromChildCollectionConfiguration(SecurityProvider.class).build()).withSetterParameterDefinition("encryptionStrategies", fromChildCollectionConfiguration(EncryptionStrategy.class).build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("custom-security-provider").withTypeDefinition(fromType(CustomSecurityProviderDelegate.class)).withConstructorParameterDefinition(fromSimpleReferenceParameter("provider-ref").build()).withConstructorParameterDefinition(fromSimpleParameter("name").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("custom-encryption-strategy").withTypeDefinition(fromType(CustomEncryptionStrategyDelegate.class)).withConstructorParameterDefinition(fromSimpleReferenceParameter("strategy-ref").build()).withConstructorParameterDefinition(fromSimpleParameter("name").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("secret-key-encryption-strategy").withTypeDefinition(fromType(SecretKeyEncryptionStrategy.class)).withSetterParameterDefinition("name", fromSimpleParameter("name").build()).withSetterParameterDefinition("key", fromSimpleParameter("key").build()).withSetterParameterDefinition("keyFactory", fromSimpleReferenceParameter("keyFactory-ref").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("password-encryption-strategy").withTypeDefinition(fromType(PasswordBasedEncryptionStrategy.class)).withSetterParameterDefinition("name", fromSimpleParameter("name").build()).withSetterParameterDefinition("iterationCount", fromSimpleParameter("iterationCount").build()).withSetterParameterDefinition("password", fromSimpleParameter("password").build()).withSetterParameterDefinition("salt", fromSimpleParameter("salt").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(REDELIVERY_POLICY_ELEMENT_IDENTIFIER).withTypeDefinition(fromType(IdempotentRedeliveryPolicy.class)).withSetterParameterDefinition("maxRedeliveryCount", fromSimpleParameter("maxRedeliveryCount").build()).withSetterParameterDefinition("useSecureHash", fromSimpleParameter("useSecureHash").build()).withSetterParameterDefinition("messageDigestAlgorithm", fromSimpleParameter("messageDigestAlgorithm").build()).withSetterParameterDefinition("idExpression", fromSimpleParameter("idExpression").build()).withSetterParameterDefinition("objectStore", fromSimpleReferenceParameter("objectStore").build()).withSetterParameterDefinition("privateObjectStore", fromChildConfiguration(ValueResolver.class).build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("pooling-profile").withTypeDefinition(fromType(PoolingProfile.class)).withSetterParameterDefinition("maxActive", fromSimpleParameter("maxActive").build()).withSetterParameterDefinition("maxIdle", fromSimpleParameter("maxIdle").build()).withSetterParameterDefinition("exhaustedAction", fromSimpleParameter("exhaustedAction", PoolingProfile.POOL_EXHAUSTED_ACTIONS::get).build()).withSetterParameterDefinition("maxWait", fromSimpleParameter("maxWait").build()).withSetterParameterDefinition("evictionCheckIntervalMillis", fromSimpleParameter("evictionCheckIntervalMillis").build()).withSetterParameterDefinition("minEvictionMillis", fromSimpleParameter("minEvictionMillis").build()).withSetterParameterDefinition("disabled", fromSimpleParameter("disabled").build()).withSetterParameterDefinition("initialisationPolicy", fromSimpleParameter("initialisationPolicy", PoolingProfile.POOL_INITIALISATION_POLICIES::get).build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("expression-component").withTypeDefinition(fromType(ExpressionLanguageComponent.class)).withSetterParameterDefinition("expression", fromTextContent().build()).withSetterParameterDefinition("expressionFile", fromSimpleParameter("file").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("invoke").withTypeDefinition(fromType(InvokerMessageProcessor.class)).withSetterParameterDefinition("name", fromSimpleParameter("name").build()).withSetterParameterDefinition("methodName", fromSimpleParameter("method").build()).withSetterParameterDefinition("argumentExpressionsString", fromSimpleParameter("methodArguments").build()).withSetterParameterDefinition("object", fromSimpleReferenceParameter("object-ref").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("expression-language").withTypeDefinition(fromType(MVELExpressionLanguage.class)).withObjectFactoryType(MVELExpressionLanguageObjectFactory.class).withSetterParameterDefinition("autoResolveVariables", fromSimpleParameter("autoResolveVariables").build()).withSetterParameterDefinition("globalFunctions", fromChildConfiguration(MVELGlobalFunctionsConfig.class).build()).withSetterParameterDefinition("imports", fromChildCollectionConfiguration(ImportEntry.class).build()).withSetterParameterDefinition("aliases", fromChildCollectionConfiguration(AliasEntry.class).build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("import").withTypeDefinition(fromType(ImportEntry.class)).withSetterParameterDefinition("key", fromSimpleParameter("name").build()).withSetterParameterDefinition("value", fromSimpleParameter("class", stringToClassConverter()).build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("alias").withTypeDefinition(fromType(AliasEntry.class)).withSetterParameterDefinition("key", fromSimpleParameter("name").build()).withSetterParameterDefinition("value", fromSimpleParameter("expression").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier("global-functions").withTypeDefinition(fromType(MVELGlobalFunctionsConfig.class)).withSetterParameterDefinition("file", fromSimpleParameter("file").build()).withSetterParameterDefinition("inlineScript", fromTextContent().build()).build());
    componentBuildingDefinitions.addAll(getTransformersBuildingDefinitions());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(POOLING_PROFILE_ELEMENT_IDENTIFIER).withTypeDefinition(fromType(PoolingProfile.class)).withConstructorParameterDefinition(fromSimpleParameter("maxActive").withDefaultValue(DEFAULT_MAX_POOL_ACTIVE).build()).withConstructorParameterDefinition(fromSimpleParameter("maxIdle").withDefaultValue(DEFAULT_MAX_POOL_IDLE).build()).withConstructorParameterDefinition(fromSimpleParameter("maxWait", value -> Long.valueOf((String) value)).withDefaultValue(valueOf(DEFAULT_MAX_POOL_WAIT)).build()).withConstructorParameterDefinition(fromSimpleParameter("exhaustedAction", POOL_EXHAUSTED_ACTIONS::get).withDefaultValue(valueOf(DEFAULT_POOL_EXHAUSTED_ACTION)).build()).withConstructorParameterDefinition(fromSimpleParameter("initialisationPolicy", POOL_INITIALISATION_POLICIES::get).withDefaultValue(valueOf(DEFAULT_POOL_INITIALISATION_POLICY)).build()).withSetterParameterDefinition("disabled", fromSimpleParameter("disabled").build()).build());
    componentBuildingDefinitions.add(baseDefinition.withIdentifier(RAISE_ERROR).withTypeDefinition(fromType(RaiseErrorProcessor.class)).withSetterParameterDefinition("type", fromSimpleParameter("type").build()).withSetterParameterDefinition("description", fromSimpleParameter("description").build()).build());
    componentBuildingDefinitions.addAll(getStreamingDefinitions());
    componentBuildingDefinitions.addAll(getIdempotentValidatorsDefinitions());
    componentBuildingDefinitions.addAll(getReconnectionDefinitions());
    componentBuildingDefinitions.addAll(getTransactionDefinitions());
    return componentBuildingDefinitions;
}
Also used : MessageEnricher(org.mule.runtime.core.internal.enricher.MessageEnricher) DYNAMIC_CONFIG_EXPIRATION_FREQUENCY(org.mule.runtime.extension.api.ExtensionConstants.DYNAMIC_CONFIG_EXPIRATION_FREQUENCY) KeyAttributeDefinitionPair(org.mule.runtime.dsl.api.component.KeyAttributeDefinitionPair) DEFAULT_BYTE_STREAMING_BUFFER_SIZE(org.mule.runtime.extension.api.ExtensionConstants.DEFAULT_BYTE_STREAMING_BUFFER_SIZE) ExpirationPolicy(org.mule.runtime.extension.api.runtime.ExpirationPolicy) REDELIVERY_POLICY_ELEMENT_IDENTIFIER(org.mule.runtime.internal.dsl.DslConstants.REDELIVERY_POLICY_ELEMENT_IDENTIFIER) Arrays.asList(java.util.Arrays.asList) Map(java.util.Map) DynamicConfigExpirationObjectFactory(org.mule.runtime.config.internal.factories.DynamicConfigExpirationObjectFactory) DEFAULT_POOL_INITIALISATION_POLICY(org.mule.runtime.api.config.PoolingProfile.DEFAULT_POOL_INITIALISATION_POLICY) ComponentBuildingDefinitionProviderUtils.createNewInstance(org.mule.runtime.config.api.dsl.model.ComponentBuildingDefinitionProviderUtils.createNewInstance) ObjectToByteArray(org.mule.runtime.core.internal.transformer.simple.ObjectToByteArray) TemplateOnErrorHandler(org.mule.runtime.core.privileged.exception.TemplateOnErrorHandler) RECONNECT_ELEMENT_IDENTIFIER(org.mule.runtime.internal.dsl.DslConstants.RECONNECT_ELEMENT_IDENTIFIER) StringAppendTransformer(org.mule.runtime.core.internal.transformer.simple.StringAppendTransformer) Transformer(org.mule.runtime.core.api.transformer.Transformer) MessageProcessorExpressionPair(org.mule.runtime.core.internal.routing.MessageProcessorExpressionPair) HexStringToByteArray(org.mule.runtime.core.internal.transformer.simple.HexStringToByteArray) NON_REPEATABLE_OBJECTS_STREAM_ALIAS(org.mule.runtime.extension.api.declaration.type.StreamingStrategyTypeBuilder.NON_REPEATABLE_OBJECTS_STREAM_ALIAS) SubflowMessageProcessorChainFactoryBean(org.mule.runtime.config.internal.factories.SubflowMessageProcessorChainFactoryBean) MessageEnricherObjectFactory(org.mule.runtime.config.internal.dsl.processor.factory.MessageEnricherObjectFactory) EncryptionTransformer(org.mule.runtime.core.internal.transformer.encryption.EncryptionTransformer) ArrayUtils.addAll(org.apache.commons.lang3.ArrayUtils.addAll) MVELExpressionLanguageObjectFactory(org.mule.runtime.core.internal.el.mvel.configuration.MVELExpressionLanguageObjectFactory) Builder.fromChildMapConfiguration(org.mule.runtime.dsl.api.component.AttributeDefinition.Builder.fromChildMapConfiguration) SimpleCollectionAggregator(org.mule.runtime.core.internal.routing.SimpleCollectionAggregator) LoggerMessageProcessor(org.mule.runtime.core.internal.processor.LoggerMessageProcessor) DecryptionTransformer(org.mule.runtime.core.internal.transformer.encryption.DecryptionTransformer) DEFAULT_BYTE_STREAMING_BUFFER_DATA_UNIT(org.mule.runtime.extension.api.ExtensionConstants.DEFAULT_BYTE_STREAMING_BUFFER_DATA_UNIT) ErrorHandler(org.mule.runtime.core.internal.exception.ErrorHandler) GZipCompressTransformer(org.mule.runtime.core.internal.transformer.compression.GZipCompressTransformer) ValueResolver(org.mule.runtime.module.extension.internal.runtime.resolver.ValueResolver) ApplicationModel(org.mule.runtime.config.internal.model.ApplicationModel) Boolean.parseBoolean(java.lang.Boolean.parseBoolean) TreeMap(java.util.TreeMap) CommonTypeConverters.stringToClassConverter(org.mule.runtime.dsl.api.component.CommonTypeConverters.stringToClassConverter) MuleEncryptionEndpointSecurityFilter(org.mule.runtime.core.internal.security.filter.MuleEncryptionEndpointSecurityFilter) DEFAULT_OBJECT_STREAMING_MAX_BUFFER_SIZE(org.mule.runtime.extension.api.ExtensionConstants.DEFAULT_OBJECT_STREAMING_MAX_BUFFER_SIZE) MuleConfiguration(org.mule.runtime.core.api.config.MuleConfiguration) DEFAULT_MAX_POOL_ACTIVE(org.mule.runtime.api.config.PoolingProfile.DEFAULT_MAX_POOL_ACTIVE) SCHEDULING_STRATEGY_ELEMENT_IDENTIFIER(org.mule.runtime.internal.dsl.DslConstants.SCHEDULING_STRATEGY_ELEMENT_IDENTIFIER) SecurityManager(org.mule.runtime.core.api.security.SecurityManager) RECONNECT_FOREVER_ELEMENT_IDENTIFIER(org.mule.runtime.internal.dsl.DslConstants.RECONNECT_FOREVER_ELEMENT_IDENTIFIER) AbstractAddVariablePropertyProcessor(org.mule.runtime.core.privileged.processor.simple.AbstractAddVariablePropertyProcessor) Builder.fromChildConfiguration(org.mule.runtime.dsl.api.component.AttributeDefinition.Builder.fromChildConfiguration) NotificationConfig(org.mule.runtime.config.internal.NotificationConfig) AddVariablePropertyConfigurator(org.mule.runtime.config.privileged.dsl.processor.AddVariablePropertyConfigurator) OnErrorFactoryBean(org.mule.runtime.config.internal.factories.OnErrorFactoryBean) ScatterGatherRouter(org.mule.runtime.core.internal.routing.ScatterGatherRouter) TypeConverter(org.mule.runtime.dsl.api.component.TypeConverter) TypeDefinition.fromMapEntryType(org.mule.runtime.dsl.api.component.TypeDefinition.fromMapEntryType) MVELExpressionLanguage(org.mule.runtime.core.internal.el.mvel.MVELExpressionLanguage) ConfigurableObjectFactory(org.mule.runtime.config.api.dsl.ConfigurableObjectFactory) REPEATABLE_IN_MEMORY_BYTES_STREAM_ALIAS(org.mule.runtime.extension.api.declaration.type.StreamingStrategyTypeBuilder.REPEATABLE_IN_MEMORY_BYTES_STREAM_ALIAS) PoolingProfile(org.mule.runtime.api.config.PoolingProfile) AbstractServerNotification(org.mule.runtime.api.notification.AbstractServerNotification) Preconditions.checkState(org.mule.runtime.api.util.Preconditions.checkState) EnvironmentPropertyObjectFactory(org.mule.runtime.config.internal.dsl.processor.EnvironmentPropertyObjectFactory) OnErrorContinueHandler(org.mule.runtime.core.internal.exception.OnErrorContinueHandler) SecretKeyEncryptionStrategy(org.mule.runtime.core.internal.security.SecretKeyEncryptionStrategy) ByteArrayToObject(org.mule.runtime.core.privileged.transformer.simple.ByteArrayToObject) ServerNotificationManagerConfigurator(org.mule.runtime.config.internal.ServerNotificationManagerConfigurator) ConfigurationExtension(org.mule.runtime.core.api.config.ConfigurationExtension) ExpressionLanguageComponent(org.mule.runtime.core.internal.el.ExpressionLanguageComponent) ForkJoinStrategyFactory(org.mule.runtime.core.internal.routing.ForkJoinStrategyFactory) DataUnit(org.mule.runtime.api.util.DataUnit) InvokerMessageProcessor(org.mule.runtime.core.internal.processor.InvokerMessageProcessor) MessageProcessorChain(org.mule.runtime.core.privileged.processor.chain.MessageProcessorChain) NullCursorStreamProviderObjectFactory(org.mule.runtime.config.internal.factories.streaming.NullCursorStreamProviderObjectFactory) ByteArrayToHexString(org.mule.runtime.core.internal.transformer.simple.ByteArrayToHexString) UsernamePasswordAuthenticationFilter(org.mule.runtime.core.internal.security.UsernamePasswordAuthenticationFilter) DefaultFlowFactoryBean(org.mule.runtime.config.internal.factories.DefaultFlowFactoryBean) AbstractTransformer(org.mule.runtime.core.api.transformer.AbstractTransformer) ResponseMessageProcessorsFactoryBean(org.mule.runtime.config.internal.factories.ResponseMessageProcessorsFactoryBean) Builder.fromReferenceObject(org.mule.runtime.dsl.api.component.AttributeDefinition.Builder.fromReferenceObject) POOLING_PROFILE_ELEMENT_IDENTIFIER(org.mule.runtime.internal.dsl.DslConstants.POOLING_PROFILE_ELEMENT_IDENTIFIER) KeyAttributeDefinitionPair.newBuilder(org.mule.runtime.dsl.api.component.KeyAttributeDefinitionPair.newBuilder) Builder.fromSimpleReferenceParameter(org.mule.runtime.dsl.api.component.AttributeDefinition.Builder.fromSimpleReferenceParameter) MessageProcessorChainObjectFactory(org.mule.runtime.core.privileged.processor.objectfactory.MessageProcessorChainObjectFactory) ANY_SELECTOR_STRING(org.mule.runtime.core.api.context.notification.ListenerSubscriptionPair.ANY_SELECTOR_STRING) RoundRobin(org.mule.runtime.core.internal.routing.RoundRobin) Function(java.util.function.Function) Builder.fromFixedValue(org.mule.runtime.dsl.api.component.AttributeDefinition.Builder.fromFixedValue) AsyncMessageProcessorsFactoryBean(org.mule.runtime.config.internal.factories.AsyncMessageProcessorsFactoryBean) ComponentBuildingDefinitionProviderUtils.getMuleMessageTransformerBaseBuilder(org.mule.runtime.config.api.dsl.model.ComponentBuildingDefinitionProviderUtils.getMuleMessageTransformerBaseBuilder) DynamicConfigExpiration(org.mule.runtime.core.api.config.DynamicConfigExpiration) ExpressionArgument(org.mule.runtime.core.internal.transformer.expression.ExpressionArgument) XmlEntityDecoder(org.mule.runtime.core.internal.transformer.codec.XmlEntityDecoder) XaTransactionFactory(org.mule.runtime.core.privileged.transaction.xa.XaTransactionFactory) LinkedList(java.util.LinkedList) DEFAULT_BYTE_STREAMING_BUFFER_INCREMENT_SIZE(org.mule.runtime.extension.api.ExtensionConstants.DEFAULT_BYTE_STREAMING_BUFFER_INCREMENT_SIZE) MessageProcessorChainFactoryBean(org.mule.runtime.config.privileged.dsl.processor.MessageProcessorChainFactoryBean) ChoiceRouterObjectFactory(org.mule.runtime.config.internal.factories.ChoiceRouterObjectFactory) Resequencer(org.mule.runtime.core.internal.routing.Resequencer) AnnotatedProcessor(org.mule.runtime.core.privileged.processor.AnnotatedProcessor) Optional.ofNullable(java.util.Optional.ofNullable) DEFAULT_OBJECT_STREAMING_BUFFER_SIZE(org.mule.runtime.extension.api.ExtensionConstants.DEFAULT_OBJECT_STREAMING_BUFFER_SIZE) ReconnectionConfigObjectFactory(org.mule.runtime.config.internal.dsl.processor.ReconnectionConfigObjectFactory) FixedFrequencyScheduler(org.mule.runtime.core.api.source.scheduler.FixedFrequencyScheduler) DEFAULT_BYTES_STREAMING_MAX_BUFFER_SIZE(org.mule.runtime.extension.api.ExtensionConstants.DEFAULT_BYTES_STREAMING_MAX_BUFFER_SIZE) ReconnectionConfig(org.mule.runtime.core.internal.retry.ReconnectionConfig) ParseTemplateProcessor(org.mule.runtime.core.internal.processor.simple.ParseTemplateProcessor) NullCursorIteratorProviderObjectFactory(org.mule.runtime.config.internal.factories.streaming.NullCursorIteratorProviderObjectFactory) INITIAL_STATE_STARTED(org.mule.runtime.core.api.construct.Flow.INITIAL_STATE_STARTED) MessageChunkAggregator(org.mule.runtime.core.internal.routing.MessageChunkAggregator) UntilSuccessful(org.mule.runtime.core.internal.routing.UntilSuccessful) TryProcessorFactoryBean(org.mule.runtime.config.internal.factories.TryProcessorFactoryBean) SetPayloadMessageProcessor(org.mule.runtime.core.internal.processor.simple.SetPayloadMessageProcessor) CORE_PREFIX(org.mule.runtime.internal.dsl.DslConstants.CORE_PREFIX) Builder.fromSimpleParameter(org.mule.runtime.dsl.api.component.AttributeDefinition.Builder.fromSimpleParameter) TypeDefinition.fromConfigurationAttribute(org.mule.runtime.dsl.api.component.TypeDefinition.fromConfigurationAttribute) ComponentBuildingDefinitionProviderUtils.getTransformerBaseBuilder(org.mule.runtime.config.api.dsl.model.ComponentBuildingDefinitionProviderUtils.getTransformerBaseBuilder) ErrorHandlerFactoryBean(org.mule.runtime.config.internal.factories.ErrorHandlerFactoryBean) AutoTransformer(org.mule.runtime.core.internal.transformer.simple.AutoTransformer) RECONNECTION_ELEMENT_IDENTIFIER(org.mule.runtime.internal.dsl.DslConstants.RECONNECTION_ELEMENT_IDENTIFIER) PasswordBasedEncryptionStrategy(org.mule.runtime.core.internal.security.PasswordBasedEncryptionStrategy) MuleRuntimeException(org.mule.runtime.api.exception.MuleRuntimeException) MVELGlobalFunctionsConfig(org.mule.runtime.core.internal.el.mvel.configuration.MVELGlobalFunctionsConfig) ResponseMessageProcessorAdapter(org.mule.runtime.core.internal.processor.ResponseMessageProcessorAdapter) ComponentBuildingDefinition(org.mule.runtime.dsl.api.component.ComponentBuildingDefinition) NON_REPEATABLE_BYTE_STREAM_ALIAS(org.mule.runtime.extension.api.declaration.type.StreamingStrategyTypeBuilder.NON_REPEATABLE_BYTE_STREAM_ALIAS) DEFAULT_POOL_EXHAUSTED_ACTION(org.mule.runtime.api.config.PoolingProfile.DEFAULT_POOL_EXHAUSTED_ACTION) CustomEncryptionStrategyDelegate(org.mule.runtime.config.internal.CustomEncryptionStrategyDelegate) AddFlowVariableProcessor(org.mule.runtime.core.internal.processor.simple.AddFlowVariableProcessor) InMemoryCursorIteratorProviderObjectFactory(org.mule.runtime.config.internal.factories.streaming.InMemoryCursorIteratorProviderObjectFactory) DefaultSchedulerMessageSource(org.mule.runtime.core.internal.source.scheduler.DefaultSchedulerMessageSource) AbstractEncryptionTransformer(org.mule.runtime.core.internal.transformer.encryption.AbstractEncryptionTransformer) CronScheduler(org.mule.runtime.core.api.source.scheduler.CronScheduler) CursorStreamProviderFactory(org.mule.runtime.core.api.streaming.bytes.CursorStreamProviderFactory) MessageEnricher(org.mule.runtime.core.internal.enricher.MessageEnricher) ObjectToString(org.mule.runtime.core.internal.transformer.simple.ObjectToString) CRON_STRATEGY_ELEMENT_IDENTIFIER(org.mule.runtime.internal.dsl.DslConstants.CRON_STRATEGY_ELEMENT_IDENTIFIER) REPEATABLE_IN_MEMORY_OBJECTS_STREAM_ALIAS(org.mule.runtime.extension.api.declaration.type.StreamingStrategyTypeBuilder.REPEATABLE_IN_MEMORY_OBJECTS_STREAM_ALIAS) DEFAULT_MAX_POOL_IDLE(org.mule.runtime.api.config.PoolingProfile.DEFAULT_MAX_POOL_IDLE) EncryptionStrategy(org.mule.runtime.core.api.security.EncryptionStrategy) ArrayList(java.util.ArrayList) DEFAULT_MAX_POOL_WAIT(org.mule.runtime.api.config.PoolingProfile.DEFAULT_MAX_POOL_WAIT) RetryPolicyTemplateObjectFactory(org.mule.runtime.config.internal.dsl.processor.RetryPolicyTemplateObjectFactory) POOL_EXHAUSTED_ACTIONS(org.mule.runtime.api.config.PoolingProfile.POOL_EXHAUSTED_ACTIONS) TypeDefinition.fromType(org.mule.runtime.dsl.api.component.TypeDefinition.fromType) ConfigurableInstanceFactory(org.mule.runtime.config.api.dsl.ConfigurableInstanceFactory) RetryNotifier(org.mule.runtime.core.api.retry.RetryNotifier) GZipUncompressTransformer(org.mule.runtime.core.internal.transformer.compression.GZipUncompressTransformer) I18nMessageFactory.createStaticMessage(org.mule.runtime.api.i18n.I18nMessageFactory.createStaticMessage) Builder.fromMultipleDefinitions(org.mule.runtime.dsl.api.component.AttributeDefinition.Builder.fromMultipleDefinitions) TransactionType(org.mule.runtime.api.tx.TransactionType) String.valueOf(java.lang.String.valueOf) Builder.fromTextContent(org.mule.runtime.dsl.api.component.AttributeDefinition.Builder.fromTextContent) SplitAggregateScope(org.mule.runtime.core.internal.routing.SplitAggregateScope) ComponentBuildingDefinitionProvider(org.mule.runtime.dsl.api.component.ComponentBuildingDefinitionProvider) CollectListForkJoinStrategyFactory(org.mule.runtime.core.internal.routing.forkjoin.CollectListForkJoinStrategyFactory) IdempotentMessageValidator(org.mule.runtime.core.internal.routing.IdempotentMessageValidator) FIXED_FREQUENCY_STRATEGY_ELEMENT_IDENTIFIER(org.mule.runtime.internal.dsl.DslConstants.FIXED_FREQUENCY_STRATEGY_ELEMENT_IDENTIFIER) MessageChunkSplitter(org.mule.runtime.core.internal.routing.MessageChunkSplitter) OnErrorPropagateHandler(org.mule.runtime.core.internal.exception.OnErrorPropagateHandler) PeriodicScheduler(org.mule.runtime.core.api.source.scheduler.PeriodicScheduler) MuleTransactionConfig(org.mule.runtime.core.api.transaction.MuleTransactionConfig) TryScope(org.mule.runtime.core.internal.processor.TryScope) Builder.fromChildCollectionConfiguration(org.mule.runtime.dsl.api.component.AttributeDefinition.Builder.fromChildCollectionConfiguration) Predicate(java.util.function.Predicate) XmlEntityEncoder(org.mule.runtime.core.internal.transformer.codec.XmlEntityEncoder) Foreach(org.mule.runtime.core.internal.routing.Foreach) FlowExceptionHandler(org.mule.runtime.core.api.exception.FlowExceptionHandler) SimpleAsyncRequestReplyRequester(org.mule.runtime.core.internal.routing.requestreply.SimpleAsyncRequestReplyRequester) ByteArrayToSerializable(org.mule.runtime.core.privileged.transformer.simple.ByteArrayToSerializable) Flow(org.mule.runtime.core.api.construct.Flow) RaiseErrorProcessor(org.mule.runtime.core.api.processor.RaiseErrorProcessor) FirstSuccessful(org.mule.runtime.core.internal.routing.FirstSuccessful) List(java.util.List) MuleSecurityManagerConfigurator(org.mule.runtime.core.api.security.MuleSecurityManagerConfigurator) SerializableToByteArray(org.mule.runtime.core.privileged.transformer.simple.SerializableToByteArray) MessageProcessorFilterPairFactoryBean(org.mule.runtime.config.internal.factories.MessageProcessorFilterPairFactoryBean) OBJECT_MULE_CONFIGURATION(org.mule.runtime.core.api.config.MuleProperties.OBJECT_MULE_CONFIGURATION) ExpirationPolicyObjectFactory(org.mule.runtime.config.internal.factories.ExpirationPolicyObjectFactory) RETRY_COUNT_FOREVER(org.mule.runtime.core.api.retry.policy.SimpleRetryPolicyTemplate.RETRY_COUNT_FOREVER) IdempotentRedeliveryPolicy(org.mule.runtime.core.privileged.processor.IdempotentRedeliveryPolicy) Builder(org.mule.runtime.dsl.api.component.ComponentBuildingDefinition.Builder) InMemoryCursorStreamProviderObjectFactory(org.mule.runtime.config.internal.factories.streaming.InMemoryCursorStreamProviderObjectFactory) SecurityProvider(org.mule.runtime.core.api.security.SecurityProvider) RetryPolicyTemplate(org.mule.runtime.core.api.retry.policy.RetryPolicyTemplate) MessageSource(org.mule.runtime.core.api.source.MessageSource) RemoveFlowVariableProcessor(org.mule.runtime.core.internal.processor.simple.RemoveFlowVariableProcessor) Splitter(org.mule.runtime.core.internal.routing.Splitter) LOCAL(org.mule.runtime.api.tx.TransactionType.LOCAL) ACTION_INDIFFERENT_STRING(org.mule.runtime.core.api.transaction.MuleTransactionConfig.ACTION_INDIFFERENT_STRING) Processor(org.mule.runtime.core.api.processor.Processor) AsyncDelegateMessageProcessor(org.mule.runtime.core.internal.processor.AsyncDelegateMessageProcessor) SchedulingMessageSourceFactoryBean(org.mule.runtime.config.internal.factories.SchedulingMessageSourceFactoryBean) ChoiceRouter(org.mule.runtime.core.internal.routing.ChoiceRouter) ListenerSubscriptionPair(org.mule.runtime.core.api.context.notification.ListenerSubscriptionPair) ImportEntry(org.mule.runtime.core.internal.el.mvel.configuration.ImportEntry) Notification(org.mule.runtime.api.notification.Notification) MuleContext(org.mule.runtime.core.api.MuleContext) FlowRefFactoryBean(org.mule.runtime.config.internal.factories.FlowRefFactoryBean) CustomSecurityProviderDelegate(org.mule.runtime.config.internal.CustomSecurityProviderDelegate) MuleConfigurationConfigurator(org.mule.runtime.config.internal.MuleConfigurationConfigurator) ModuleOperationMessageProcessorChainFactoryBean(org.mule.runtime.config.internal.factories.ModuleOperationMessageProcessorChainFactoryBean) CursorIteratorProviderFactory(org.mule.runtime.core.api.streaming.object.CursorIteratorProviderFactory) AbstractExpressionTransformer(org.mule.runtime.core.internal.transformer.expression.AbstractExpressionTransformer) AttributeDefinition(org.mule.runtime.dsl.api.component.AttributeDefinition) DEFAULT_OBJECT_STREAMING_BUFFER_INCREMENT_SIZE(org.mule.runtime.extension.api.ExtensionConstants.DEFAULT_OBJECT_STREAMING_BUFFER_INCREMENT_SIZE) CustomSecurityFilterObjectFactory(org.mule.runtime.config.internal.dsl.processor.CustomSecurityFilterObjectFactory) TimeUnit(java.util.concurrent.TimeUnit) ExpressionTransformer(org.mule.runtime.core.internal.transformer.expression.ExpressionTransformer) POOL_INITIALISATION_POLICIES(org.mule.runtime.api.config.PoolingProfile.POOL_INITIALISATION_POLICIES) AliasEntry(org.mule.runtime.core.internal.el.mvel.configuration.AliasEntry) KeyAttributeDefinitionPair.newBuilder(org.mule.runtime.dsl.api.component.KeyAttributeDefinitionPair.newBuilder) ComponentBuildingDefinitionProviderUtils.getMuleMessageTransformerBaseBuilder(org.mule.runtime.config.api.dsl.model.ComponentBuildingDefinitionProviderUtils.getMuleMessageTransformerBaseBuilder) ComponentBuildingDefinitionProviderUtils.getTransformerBaseBuilder(org.mule.runtime.config.api.dsl.model.ComponentBuildingDefinitionProviderUtils.getTransformerBaseBuilder) Builder(org.mule.runtime.dsl.api.component.ComponentBuildingDefinition.Builder) Resequencer(org.mule.runtime.core.internal.routing.Resequencer) ByteArrayToHexString(org.mule.runtime.core.internal.transformer.simple.ByteArrayToHexString) ObjectToString(org.mule.runtime.core.internal.transformer.simple.ObjectToString) DynamicConfigExpirationObjectFactory(org.mule.runtime.config.internal.factories.DynamicConfigExpirationObjectFactory) MessageProcessorExpressionPair(org.mule.runtime.core.internal.routing.MessageProcessorExpressionPair) FlowExceptionHandler(org.mule.runtime.core.api.exception.FlowExceptionHandler) AsyncMessageProcessorsFactoryBean(org.mule.runtime.config.internal.factories.AsyncMessageProcessorsFactoryBean) ServerNotificationManagerConfigurator(org.mule.runtime.config.internal.ServerNotificationManagerConfigurator) IdempotentRedeliveryPolicy(org.mule.runtime.core.privileged.processor.IdempotentRedeliveryPolicy) MuleConfigurationConfigurator(org.mule.runtime.config.internal.MuleConfigurationConfigurator) MuleConfiguration(org.mule.runtime.core.api.config.MuleConfiguration) ExpressionLanguageComponent(org.mule.runtime.core.internal.el.ExpressionLanguageComponent) NotificationConfig(org.mule.runtime.config.internal.NotificationConfig) ComponentBuildingDefinition(org.mule.runtime.dsl.api.component.ComponentBuildingDefinition) ResponseMessageProcessorAdapter(org.mule.runtime.core.internal.processor.ResponseMessageProcessorAdapter) Builder(org.mule.runtime.dsl.api.component.ComponentBuildingDefinition.Builder) DefaultFlowFactoryBean(org.mule.runtime.config.internal.factories.DefaultFlowFactoryBean) ImportEntry(org.mule.runtime.core.internal.el.mvel.configuration.ImportEntry) PoolingProfile(org.mule.runtime.api.config.PoolingProfile) LinkedList(java.util.LinkedList) MessageEnricherObjectFactory(org.mule.runtime.config.internal.dsl.processor.factory.MessageEnricherObjectFactory) ResponseMessageProcessorsFactoryBean(org.mule.runtime.config.internal.factories.ResponseMessageProcessorsFactoryBean) TemplateOnErrorHandler(org.mule.runtime.core.privileged.exception.TemplateOnErrorHandler) RaiseErrorProcessor(org.mule.runtime.core.api.processor.RaiseErrorProcessor) SimpleCollectionAggregator(org.mule.runtime.core.internal.routing.SimpleCollectionAggregator) LoggerMessageProcessor(org.mule.runtime.core.internal.processor.LoggerMessageProcessor) AbstractAddVariablePropertyProcessor(org.mule.runtime.core.privileged.processor.simple.AbstractAddVariablePropertyProcessor) InvokerMessageProcessor(org.mule.runtime.core.internal.processor.InvokerMessageProcessor) AnnotatedProcessor(org.mule.runtime.core.privileged.processor.AnnotatedProcessor) ParseTemplateProcessor(org.mule.runtime.core.internal.processor.simple.ParseTemplateProcessor) SetPayloadMessageProcessor(org.mule.runtime.core.internal.processor.simple.SetPayloadMessageProcessor) AddFlowVariableProcessor(org.mule.runtime.core.internal.processor.simple.AddFlowVariableProcessor) RaiseErrorProcessor(org.mule.runtime.core.api.processor.RaiseErrorProcessor) RemoveFlowVariableProcessor(org.mule.runtime.core.internal.processor.simple.RemoveFlowVariableProcessor) Processor(org.mule.runtime.core.api.processor.Processor) AsyncDelegateMessageProcessor(org.mule.runtime.core.internal.processor.AsyncDelegateMessageProcessor) StringAppendTransformer(org.mule.runtime.core.internal.transformer.simple.StringAppendTransformer) Transformer(org.mule.runtime.core.api.transformer.Transformer) EncryptionTransformer(org.mule.runtime.core.internal.transformer.encryption.EncryptionTransformer) DecryptionTransformer(org.mule.runtime.core.internal.transformer.encryption.DecryptionTransformer) GZipCompressTransformer(org.mule.runtime.core.internal.transformer.compression.GZipCompressTransformer) AbstractTransformer(org.mule.runtime.core.api.transformer.AbstractTransformer) AutoTransformer(org.mule.runtime.core.internal.transformer.simple.AutoTransformer) AbstractEncryptionTransformer(org.mule.runtime.core.internal.transformer.encryption.AbstractEncryptionTransformer) GZipUncompressTransformer(org.mule.runtime.core.internal.transformer.compression.GZipUncompressTransformer) AbstractExpressionTransformer(org.mule.runtime.core.internal.transformer.expression.AbstractExpressionTransformer) ExpressionTransformer(org.mule.runtime.core.internal.transformer.expression.ExpressionTransformer) AttributeDefinition(org.mule.runtime.dsl.api.component.AttributeDefinition) DynamicConfigExpiration(org.mule.runtime.core.api.config.DynamicConfigExpiration) MessageProcessorChain(org.mule.runtime.core.privileged.processor.chain.MessageProcessorChain) MuleContext(org.mule.runtime.core.api.MuleContext) CronScheduler(org.mule.runtime.core.api.source.scheduler.CronScheduler) PeriodicScheduler(org.mule.runtime.core.api.source.scheduler.PeriodicScheduler) CustomEncryptionStrategyDelegate(org.mule.runtime.config.internal.CustomEncryptionStrategyDelegate) InvokerMessageProcessor(org.mule.runtime.core.internal.processor.InvokerMessageProcessor) MessageChunkAggregator(org.mule.runtime.core.internal.routing.MessageChunkAggregator) MuleEncryptionEndpointSecurityFilter(org.mule.runtime.core.internal.security.filter.MuleEncryptionEndpointSecurityFilter) MVELGlobalFunctionsConfig(org.mule.runtime.core.internal.el.mvel.configuration.MVELGlobalFunctionsConfig) AnnotatedProcessor(org.mule.runtime.core.privileged.processor.AnnotatedProcessor) ForkJoinStrategyFactory(org.mule.runtime.core.internal.routing.ForkJoinStrategyFactory) CollectListForkJoinStrategyFactory(org.mule.runtime.core.internal.routing.forkjoin.CollectListForkJoinStrategyFactory) MessageChunkSplitter(org.mule.runtime.core.internal.routing.MessageChunkSplitter) Splitter(org.mule.runtime.core.internal.routing.Splitter) POOL_INITIALISATION_POLICIES(org.mule.runtime.api.config.PoolingProfile.POOL_INITIALISATION_POLICIES) CollectListForkJoinStrategyFactory(org.mule.runtime.core.internal.routing.forkjoin.CollectListForkJoinStrategyFactory) OnErrorFactoryBean(org.mule.runtime.config.internal.factories.OnErrorFactoryBean) DefaultSchedulerMessageSource(org.mule.runtime.core.internal.source.scheduler.DefaultSchedulerMessageSource) MessageSource(org.mule.runtime.core.api.source.MessageSource) AsyncDelegateMessageProcessor(org.mule.runtime.core.internal.processor.AsyncDelegateMessageProcessor) Flow(org.mule.runtime.core.api.construct.Flow) PasswordBasedEncryptionStrategy(org.mule.runtime.core.internal.security.PasswordBasedEncryptionStrategy) SubflowMessageProcessorChainFactoryBean(org.mule.runtime.config.internal.factories.SubflowMessageProcessorChainFactoryBean) SecurityProvider(org.mule.runtime.core.api.security.SecurityProvider) FlowRefFactoryBean(org.mule.runtime.config.internal.factories.FlowRefFactoryBean) SimpleAsyncRequestReplyRequester(org.mule.runtime.core.internal.routing.requestreply.SimpleAsyncRequestReplyRequester) CustomSecurityProviderDelegate(org.mule.runtime.config.internal.CustomSecurityProviderDelegate) AliasEntry(org.mule.runtime.core.internal.el.mvel.configuration.AliasEntry) AddFlowVariableProcessor(org.mule.runtime.core.internal.processor.simple.AddFlowVariableProcessor) ListenerSubscriptionPair(org.mule.runtime.core.api.context.notification.ListenerSubscriptionPair)

Aggregations

Boolean.parseBoolean (java.lang.Boolean.parseBoolean)1 String.valueOf (java.lang.String.valueOf)1 ArrayList (java.util.ArrayList)1 Arrays.asList (java.util.Arrays.asList)1 LinkedList (java.util.LinkedList)1 List (java.util.List)1 Map (java.util.Map)1 Optional.ofNullable (java.util.Optional.ofNullable)1 TreeMap (java.util.TreeMap)1 TimeUnit (java.util.concurrent.TimeUnit)1 Function (java.util.function.Function)1 Predicate (java.util.function.Predicate)1 QName (javax.xml.namespace.QName)1 ArrayUtils.addAll (org.apache.commons.lang3.ArrayUtils.addAll)1 ClassTypeLoader (org.mule.metadata.api.ClassTypeLoader)1 MetadataType (org.mule.metadata.api.model.MetadataType)1 ObjectType (org.mule.metadata.api.model.ObjectType)1 MetadataTypeUtils.getTypeId (org.mule.metadata.api.utils.MetadataTypeUtils.getTypeId)1 PoolingProfile (org.mule.runtime.api.config.PoolingProfile)1 DEFAULT_MAX_POOL_ACTIVE (org.mule.runtime.api.config.PoolingProfile.DEFAULT_MAX_POOL_ACTIVE)1