org.mule.module.launcher
Class AbstractDeploymentListener

java.lang.Object
  extended by org.mule.module.launcher.AbstractDeploymentListener
All Implemented Interfaces:
DeploymentListener
Direct Known Subclasses:
DeploymentStatusTracker

public class AbstractDeploymentListener
extends Object
implements DeploymentListener

Convenience implementation of DeploymentListener. Default method implementations are no-ops. Sub-classes can implement the DeploymentListener interface without having to override all methods. This was implemented so that DeploymentStatusTracker would not need to provide default implementations of undeployment events.


Constructor Summary
AbstractDeploymentListener()
           
 
Method Summary
 void onDeploymentFailure(String appName, Throwable cause)
          Notifies that a deploy for a given application has finished with a failure.
 void onDeploymentStart(String appName)
          Notifies that a deploy for a given application has started.
 void onDeploymentSuccess(String appName)
          Notifies that a deploy for a given application has successfully finished.
 void onMuleContextConfigured(String appName, MuleContext context)
          Notifies the configuration of the MuleContext for a given app.
 void onMuleContextCreated(String appName, MuleContext context)
          Notifies the creation of the MuleContext for a given app.
 void onMuleContextInitialised(String appName, MuleContext context)
          Notifies the initialization of the MuleContext for a given app.
 void onUndeploymentFailure(String appName, Throwable cause)
          Notifies that an un-deployment for a given application has finished with a failure.
 void onUndeploymentStart(String appName)
          Notifies that an un-deployment for a given application has started.
 void onUndeploymentSuccess(String appName)
          Notifies that an un-deployment for a given application has successfully finished.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDeploymentListener

public AbstractDeploymentListener()
Method Detail

onDeploymentStart

public void onDeploymentStart(String appName)
Description copied from interface: DeploymentListener
Notifies that a deploy for a given application has started.

Specified by:
onDeploymentStart in interface DeploymentListener
Parameters:
appName - the name of the application being deployed

onDeploymentSuccess

public void onDeploymentSuccess(String appName)
Description copied from interface: DeploymentListener
Notifies that a deploy for a given application has successfully finished.

Specified by:
onDeploymentSuccess in interface DeploymentListener
Parameters:
appName - the name of the application being deployed

onDeploymentFailure

public void onDeploymentFailure(String appName,
                                Throwable cause)
Description copied from interface: DeploymentListener
Notifies that a deploy for a given application has finished with a failure.

Specified by:
onDeploymentFailure in interface DeploymentListener
Parameters:
appName - the name of the application being deployed
cause - the cause of the failure

onUndeploymentStart

public void onUndeploymentStart(String appName)
Description copied from interface: DeploymentListener
Notifies that an un-deployment for a given application has started.

Specified by:
onUndeploymentStart in interface DeploymentListener
Parameters:
appName - the name of the application being un-deployed

onUndeploymentSuccess

public void onUndeploymentSuccess(String appName)
Description copied from interface: DeploymentListener
Notifies that an un-deployment for a given application has successfully finished.

Specified by:
onUndeploymentSuccess in interface DeploymentListener
Parameters:
appName - the name of the application being un-deployed

onUndeploymentFailure

public void onUndeploymentFailure(String appName,
                                  Throwable cause)
Description copied from interface: DeploymentListener
Notifies that an un-deployment for a given application has finished with a failure.

Specified by:
onUndeploymentFailure in interface DeploymentListener
Parameters:
appName - the name of the application being un-deployed
cause - the cause of the failure

onMuleContextCreated

public void onMuleContextCreated(String appName,
                                 MuleContext context)
Description copied from interface: DeploymentListener
Notifies the creation of the MuleContext for a given app.

Specified by:
onMuleContextCreated in interface DeploymentListener
Parameters:
appName - name of the application that owns the mule context
context - mule context for the application being deployed

onMuleContextInitialised

public void onMuleContextInitialised(String appName,
                                     MuleContext context)
Description copied from interface: DeploymentListener
Notifies the initialization of the MuleContext for a given app.

Specified by:
onMuleContextInitialised in interface DeploymentListener
Parameters:
appName - name of the application that owns the mule context
context - mule context for the application being deployed

onMuleContextConfigured

public void onMuleContextConfigured(String appName,
                                    MuleContext context)
Description copied from interface: DeploymentListener
Notifies the configuration of the MuleContext for a given app.

Specified by:
onMuleContextConfigured in interface DeploymentListener
Parameters:
appName - name of the application that owns the mule context
context - mule context for the application being deployed


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