org.mule.module.launcher.application
Class ApplicationWrapper

java.lang.Object
  extended by org.mule.module.launcher.artifact.ArtifactWrapper<Application>
      extended by org.mule.module.launcher.application.ApplicationWrapper
All Implemented Interfaces:
Application, Artifact

public class ApplicationWrapper
extends ArtifactWrapper<Application>
implements Application

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 ApplicationWrapper(Application delegate)
           
 
Method Summary
 String getAppName()
           
 Application getDelegate()
           
 ApplicationDescriptor getDescriptor()
           
 ApplicationStatus getStatus()
           
 String toString()
           
 
Methods inherited from class org.mule.module.launcher.artifact.ArtifactWrapper
dispose, getArtifactClassLoader, getArtifactName, getMuleContext, getResourceFiles, init, install, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mule.module.launcher.application.Application
getMuleContext
 
Methods inherited from interface org.mule.module.launcher.artifact.Artifact
dispose, getArtifactClassLoader, getArtifactName, getResourceFiles, init, install, start, stop
 

Constructor Detail

ApplicationWrapper

protected ApplicationWrapper(Application delegate)
                      throws IOException
Throws:
IOException
Method Detail

getAppName

public String getAppName()
Overrides:
getAppName in class ArtifactWrapper<Application>

getDescriptor

public ApplicationDescriptor getDescriptor()
Specified by:
getDescriptor in interface Application

getStatus

public ApplicationStatus getStatus()
Specified by:
getStatus in interface Application
Returns:
the current status of the application

toString

public String toString()
Overrides:
toString in class ArtifactWrapper<Application>

getDelegate

public Application getDelegate()
Overrides:
getDelegate in class ArtifactWrapper<Application>


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.