public final class DefaultExtensionFactory extends Object implements org.mule.runtime.extension.api.runtime.ExtensionFactory
ExtensionFactory.
It transforms ExtensionDeclarer instances into fully fledged instances of ImmutableExtensionModel. Because the
ExtensionDeclarer is a raw, unvalidated object model, this instance uses a fixed list of ModelValidator to
assure that the produced model is legal.
It uses a ServiceRegistry to locate instances of ModelEnricher. The discovery happens when the
DefaultExtensionFactory(ServiceRegistry, ClassLoader) constructor is invoked and the list of discovered instances will
be used during the whole duration of this instance.
| Constructor and Description |
|---|
DefaultExtensionFactory(ServiceRegistry serviceRegistry,
ClassLoader classLoader)
Creates a new instance and uses the given
serviceRegistry to locate instances of ModelEnricher |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.api.meta.model.ExtensionModel |
createFrom(org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclarer declarer,
org.mule.runtime.extension.api.declaration.DescribingContext describingContext) |
public DefaultExtensionFactory(ServiceRegistry serviceRegistry, ClassLoader classLoader)
serviceRegistry to locate instances of ModelEnricherserviceRegistry - a ServiceRegistryclassLoader - the ClassLoader on which the serviceRegistry will search intopublic org.mule.runtime.api.meta.model.ExtensionModel createFrom(org.mule.runtime.api.meta.model.declaration.fluent.ExtensionDeclarer declarer,
org.mule.runtime.extension.api.declaration.DescribingContext describingContext)
createFrom in interface org.mule.runtime.extension.api.runtime.ExtensionFactoryCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.