org.mule.module.launcher.application
Class ApplicationWrapper
java.lang.Object
org.mule.module.launcher.application.ApplicationWrapper
- All Implemented Interfaces:
- Application
public class ApplicationWrapper
- extends Object
- 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.
ApplicationWrapper
protected ApplicationWrapper(Application delegate)
throws IOException
- Throws:
IOException
dispose
public void dispose()
- Specified by:
dispose in interface Application
getDeploymentClassLoader
public ClassLoader getDeploymentClassLoader()
- Specified by:
getDeploymentClassLoader in interface Application
- Returns:
- a classloader associated with this deployment
getMuleContext
public MuleContext getMuleContext()
- Specified by:
getMuleContext in interface Application
init
public void init()
- Specified by:
init in interface Application
install
public void install()
throws InstallException
- Specified by:
install in interface Application
- Throws:
InstallException
redeploy
public void redeploy()
- Specified by:
redeploy in interface Application
start
public void start()
throws DeploymentStartException
- Specified by:
start in interface Application
- Throws:
DeploymentStartException
stop
public void stop()
- Specified by:
stop in interface Application
getAppName
public String getAppName()
- Specified by:
getAppName in interface Application
getDescriptor
public ApplicationDescriptor getDescriptor()
- Specified by:
getDescriptor in interface Application
toString
public String toString()
- Overrides:
toString in class Object
getDelegate
public Application getDelegate()
Copyright © 2003-2011 MuleSoft, Inc.. All Rights Reserved.