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());
}
Aggregations