Search in sources :

Example 1 with ObjectParsingDelegate

use of org.mule.runtime.module.extension.internal.config.dsl.object.ObjectParsingDelegate in project mule by mulesoft.

the class ExtensionDefinitionParser method parseObject.

protected void parseObject(String key, String name, ObjectType type, Object defaultValue, ExpressionSupport expressionSupport, boolean required, boolean acceptsReferences, DslElementSyntax elementDsl, Set<ModelProperty> modelProperties) {
    parseAttributeParameter(key, name, type, defaultValue, expressionSupport, required, acceptsReferences, modelProperties);
    ObjectParsingDelegate delegate = (ObjectParsingDelegate) locateParsingDelegate(objectParsingDelegates, type).orElseThrow(() -> new MuleRuntimeException(createStaticMessage("Could not find a parsing delegate for type " + getType(type).getName())));
    addParameter(getChildKey(key), delegate.parse(name, type, elementDsl));
}
Also used : DefaultObjectParsingDelegate(org.mule.runtime.module.extension.internal.config.dsl.object.DefaultObjectParsingDelegate) ObjectParsingDelegate(org.mule.runtime.module.extension.internal.config.dsl.object.ObjectParsingDelegate) MuleRuntimeException(org.mule.runtime.api.exception.MuleRuntimeException)

Aggregations

MuleRuntimeException (org.mule.runtime.api.exception.MuleRuntimeException)1 DefaultObjectParsingDelegate (org.mule.runtime.module.extension.internal.config.dsl.object.DefaultObjectParsingDelegate)1 ObjectParsingDelegate (org.mule.runtime.module.extension.internal.config.dsl.object.ObjectParsingDelegate)1