org.mule.module.launcher
Class ApplicationWrapper
java.lang.Object
org.mule.module.launcher.ApplicationWrapper
- All Implemented Interfaces:
- Application
public class ApplicationWrapper
- extends java.lang.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ApplicationWrapper
public ApplicationWrapper(Application delegate)
dispose
public void dispose()
- Specified by:
dispose
in interface Application
getDeploymentClassLoader
public java.lang.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 java.lang.String getAppName()
- Specified by:
getAppName
in interface Application
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.