|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 Artifactpublic ArtifactClassLoader getArtifactClassLoader()
getArtifactClassLoader in interface Artifactpublic MuleContext getMuleContext()
getMuleContext in interface Artifactpublic void init()
Artifact
init in interface Artifact
public void install()
throws InstallException
Artifact
install in interface ArtifactInstallExceptionpublic String getArtifactName()
getArtifactName in interface Artifactpublic File[] getResourceFiles()
getResourceFiles in interface Artifact
public void start()
throws DeploymentStartException
Artifact
start in interface ArtifactDeploymentStartExceptionpublic void stop()
Artifact
stop in interface Artifactpublic String getAppName()
public String toString()
toString in class Objectpublic T getDelegate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||