Search in sources :

Example 6 with ConfigurationDeclarer

use of org.mule.runtime.api.meta.model.declaration.fluent.ConfigurationDeclarer in project mule by mulesoft.

the class TestConfigPropertiesExtensionLoadingDelegate method accept.

@Override
public void accept(ExtensionDeclarer extensionDeclarer, ExtensionLoadingContext context) {
    ConfigurationDeclarer configurationDeclarer = extensionDeclarer.named(EXTENSION_NAME).describedAs("Crafted Config Properties Extension").onVersion("1.0.0").withCategory(COMMUNITY).fromVendor("Mulesoft").withConfig("secure-configuration-properties");
    ParameterGroupDeclarer defaultParameterGroup = configurationDeclarer.onDefaultParameterGroup();
    defaultParameterGroup.withRequiredParameter("file").ofType(BaseTypeBuilder.create(JAVA).stringType().build());
    ParameterGroupDeclarer parameterGroupDeclarer = configurationDeclarer.onParameterGroup("encrypt").withDslInlineRepresentation(true);
    parameterGroupDeclarer.withRequiredParameter("algorithm").ofType(BaseTypeBuilder.create(JAVA).stringType().build());
    parameterGroupDeclarer.withRequiredParameter("mode").ofType(BaseTypeBuilder.create(JAVA).stringType().build());
}
Also used : ConfigurationDeclarer(org.mule.runtime.api.meta.model.declaration.fluent.ConfigurationDeclarer) ParameterGroupDeclarer(org.mule.runtime.api.meta.model.declaration.fluent.ParameterGroupDeclarer)

Aggregations

ConfigurationDeclarer (org.mule.runtime.api.meta.model.declaration.fluent.ConfigurationDeclarer)6 ExtensionDeclarer (org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclarer)2 ComponentModel (org.mule.runtime.config.internal.model.ComponentModel)2 ConfigurationFactoryModelProperty (org.mule.runtime.module.extension.internal.loader.java.property.ConfigurationFactoryModelProperty)2 ImplementingTypeModelProperty (org.mule.runtime.module.extension.internal.loader.java.property.ImplementingTypeModelProperty)2 TreeSet (java.util.TreeSet)1 CycleDetector (org.jgrapht.alg.CycleDetector)1 DefaultDirectedGraph (org.jgrapht.graph.DefaultDirectedGraph)1 DefaultEdge (org.jgrapht.graph.DefaultEdge)1 MuleRuntimeException (org.mule.runtime.api.exception.MuleRuntimeException)1 ExtensionModel (org.mule.runtime.api.meta.model.ExtensionModel)1 XmlDslModel (org.mule.runtime.api.meta.model.XmlDslModel)1 HasOperationDeclarer (org.mule.runtime.api.meta.model.declaration.fluent.HasOperationDeclarer)1 ParameterGroupDeclarer (org.mule.runtime.api.meta.model.declaration.fluent.ParameterGroupDeclarer)1 ErrorModel (org.mule.runtime.api.meta.model.error.ErrorModel)1 GlobalElementComponentModelModelProperty (org.mule.runtime.config.internal.dsl.model.extension.xml.property.GlobalElementComponentModelModelProperty)1 PrivateOperationsModelProperty (org.mule.runtime.config.internal.dsl.model.extension.xml.property.PrivateOperationsModelProperty)1 Configuration (org.mule.runtime.extension.api.annotation.Configuration)1 NoReconnectionStrategyModelProperty (org.mule.runtime.extension.internal.property.NoReconnectionStrategyModelProperty)1 TypeAwareConfigurationFactory (org.mule.runtime.module.extension.internal.loader.java.TypeAwareConfigurationFactory)1