|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mule.module.launcher.artifact.ArtifactWrapper<T>
public class ArtifactWrapper<T extends Artifact>
Decorates the target deployer to properly switch out context classloader for deployment one where applicable. E.g. init() phase may load custom classes for an application, which must be executed with deployment (app) classloader in the context, and not Mule system classloader.
Constructor Summary | |
---|---|
protected |
ArtifactWrapper(T artifact)
|
Method Summary | |
---|---|
void |
dispose()
Dispose the artifact. |
String |
getAppName()
|
ArtifactClassLoader |
getArtifactClassLoader()
|
String |
getArtifactName()
|
T |
getDelegate()
|
MuleContext |
getMuleContext()
|
File[] |
getResourceFiles()
|
void |
init()
Initialise the artifact resources |
void |
install()
Install the artifact. |
void |
start()
Starts the artifact execution |
void |
stop()
Stops the artifact execution |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ArtifactWrapper(T artifact) throws IOException
IOException
Method Detail |
---|
public void dispose()
Artifact
dispose
in interface Artifact
public ArtifactClassLoader getArtifactClassLoader()
getArtifactClassLoader
in interface Artifact
public MuleContext getMuleContext()
getMuleContext
in interface Artifact
public void init()
Artifact
init
in interface Artifact
public void install() throws InstallException
Artifact
install
in interface Artifact
InstallException
public String getArtifactName()
getArtifactName
in interface Artifact
public File[] getResourceFiles()
getResourceFiles
in interface Artifact
public void start() throws DeploymentStartException
Artifact
start
in interface Artifact
DeploymentStartException
public void stop()
Artifact
stop
in interface Artifact
public String getAppName()
public String toString()
toString
in class Object
public T getDelegate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |