Search in sources :

Example 1 with CustomBuildingDefinitionProviderModelProperty

use of org.mule.runtime.core.internal.extension.CustomBuildingDefinitionProviderModelProperty in project mule by mulesoft.

the class MuleExtensionModelDeclarer method createExtensionModel.

ExtensionDeclarer createExtensionModel() {
    final ClassTypeLoader typeLoader = ExtensionsTypeLoaderFactory.getDefault().createTypeLoader(MuleExtensionModelDeclarer.class.getClassLoader());
    ExtensionDeclarer extensionDeclarer = new ExtensionDeclarer().named(MULE_NAME).describedAs("Mule Runtime and Integration Platform: Core components").onVersion(MULE_VERSION).fromVendor(MULESOFT_VENDOR).withCategory(COMMUNITY).withModelProperty(new CustomBuildingDefinitionProviderModelProperty()).withXmlDsl(XmlDslModel.builder().setPrefix(CORE_PREFIX).setNamespace(CORE_NAMESPACE).setSchemaVersion(MULE_VERSION).setXsdFileName(CORE_PREFIX + ".xsd").setSchemaLocation(CORE_SCHEMA_LOCATION).build());
    declareExportedTypes(typeLoader, extensionDeclarer);
    // constructs
    declareFlow(extensionDeclarer, typeLoader);
    declareSubflow(extensionDeclarer);
    declareChoice(extensionDeclarer, typeLoader);
    declareErrorHandler(extensionDeclarer, typeLoader);
    declareTry(extensionDeclarer, typeLoader);
    declareScatterGather(extensionDeclarer, typeLoader);
    declareSplitAggregate(extensionDeclarer, typeLoader);
    declareFirstSuccessful(extensionDeclarer);
    declareRoundRobin(extensionDeclarer);
    declareConfiguration(extensionDeclarer, typeLoader);
    declareConfigurationProperties(extensionDeclarer, typeLoader);
    declareAsync(extensionDeclarer, typeLoader);
    declareForEach(extensionDeclarer, typeLoader);
    declareUntilSuccessful(extensionDeclarer, typeLoader);
    // operations
    declareFlowRef(extensionDeclarer, typeLoader);
    declareIdempotentValidator(extensionDeclarer, typeLoader);
    declareLogger(extensionDeclarer, typeLoader);
    declareSetPayload(extensionDeclarer, typeLoader);
    declareSetVariable(extensionDeclarer, typeLoader);
    declareRemoveVariable(extensionDeclarer, typeLoader);
    declareParseTemplate(extensionDeclarer, typeLoader);
    declareRaiseError(extensionDeclarer, typeLoader);
    // sources
    declareScheduler(extensionDeclarer, typeLoader);
    // errors
    declareErrors(extensionDeclarer);
    return extensionDeclarer;
}
Also used : ClassTypeLoader(org.mule.metadata.api.ClassTypeLoader) ExtensionDeclarer(org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclarer) CustomBuildingDefinitionProviderModelProperty(org.mule.runtime.core.internal.extension.CustomBuildingDefinitionProviderModelProperty)

Aggregations

ClassTypeLoader (org.mule.metadata.api.ClassTypeLoader)1 ExtensionDeclarer (org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclarer)1 CustomBuildingDefinitionProviderModelProperty (org.mule.runtime.core.internal.extension.CustomBuildingDefinitionProviderModelProperty)1