public class MuleExtensionModelLoaderManager extends Object implements ExtensionModelLoaderManager
MuleExtensionModelLoaderManager that uses SPI to look for the ExtensionModelLoader available
from the container.| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
MuleExtensionModelLoaderManager(ArtifactClassLoader containerClassLoader)
Creates an instance of the manager.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<org.mule.runtime.extension.api.loader.ExtensionModelLoader> |
getExtensionModelLoader(LoaderDescriber loaderDescriber) |
void |
start()
Will look through SPI every class that implements the
providerClass and if there are repeated IDs, it will
collect them all to throw an exception with the detailed message. |
void |
stop() |
String |
toString() |
public MuleExtensionModelLoaderManager(ArtifactClassLoader containerClassLoader)
containerClassLoader - ClassLoader from the container.public void start()
throws org.mule.runtime.api.exception.MuleException
providerClass and if there are repeated IDs, it will
collect them all to throw an exception with the detailed message.
The exception, if thrown, will have the following message:
There are several loaders that return the same ID when looking up providers for 'org.mule.runtime.module.artifact.ExtensionModelLoader'. Full error list: ID [some-id] is being returned by the following classes [org.foo.FooLoader, org.bar.BarLoader] ID [another-id] is being returned by the following classes [org.foo2.FooLoader2, org.bar2.BarLoader2]
start in interface org.mule.runtime.api.lifecycle.StartableIllegalStateException - if there are loaders with repeated IDs.org.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionpublic Optional<org.mule.runtime.extension.api.loader.ExtensionModelLoader> getExtensionModelLoader(LoaderDescriber loaderDescriber)
getExtensionModelLoader in interface ExtensionModelLoaderRepositoryCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.