public interface DslElementModelFactory
DslElementModel of any ComponentConfiguration within
the context of the available application plugins, provided for each instance
of this DslElementModelFactory| Modifier and Type | Method and Description |
|---|---|
<T> Optional<DslElementModel<T>> |
create(ComponentConfiguration componentConfiguration)
Resolves the
DslElementModel for the given applicationElement,
providing an element with all the required information for representing this applicationElement
element in the DSL and binding it to its model component or MetadataType. |
<T> Optional<DslElementModel<T>> |
create(org.mule.runtime.api.app.declaration.ElementDeclaration elementDeclaration)
Resolves the
DslElementModel for the given ElementDeclaration,
providing an element with all the required information for representing this elementDeclaration
element in the DSL and binding it to its model component or MetadataType. |
static DslElementModelFactory |
getDefault(org.mule.runtime.api.dsl.DslResolvingContext context)
Provides a default implementation of the
DslElementModelFactory |
static DslElementModelFactory getDefault(org.mule.runtime.api.dsl.DslResolvingContext context)
DslElementModelFactorycontext - the DslResolvingContext to be used when performing a
namespace or ElementDeclaration.getName()
based lookup for a given ExtensionModel.DslElementModelFactory<T> Optional<DslElementModel<T>> create(org.mule.runtime.api.app.declaration.ElementDeclaration elementDeclaration)
DslElementModel for the given ElementDeclaration,
providing an element with all the required information for representing this elementDeclaration
element in the DSL and binding it to its model component or MetadataType.
This resolution can only be performed from DSL top-level-elements, which have global representations
in the ExtensionModel, so this method will return an Optional.empty() result if the
given applicationElement does not identify either a ConfigurationModel,
OperationModel, SourceModelT - the expected model type of the elementelementDeclaration - the ElementDeclaration for which its DslElementModel
representation is required.DslElementModel representation of the ElementDeclaration if one
is possible to be built based on the extensions provided as
resolution context, or Optional.empty() if no DslElementModel could be created
for the given applicationElement with the current extensions context.<T> Optional<DslElementModel<T>> create(ComponentConfiguration componentConfiguration)
DslElementModel for the given applicationElement,
providing an element with all the required information for representing this applicationElement
element in the DSL and binding it to its model component or MetadataType.
This resolution can only be performed from DSL top-level-elements, which have global representations
in the ExtensionModel, so this method will return an Optional.empty() result if the
given applicationElement does not identify either a ConfigurationModel,
OperationModel, SourceModel or an ObjectType than can be expressed as
an explicit top level element.T - the expected model type of the elementcomponentConfiguration - the ComponentConfiguration for which its DslElementModel
representation is required.DslElementModel representation of the ComponentConfiguration if one
is possible to be built based on the extensions provided as
resolution context, or Optional.empty() if no DslElementModel could be created
for the given applicationElement with the current extensions context.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.