View Javadoc

1   /*
2    * $Id: AbstractDeploymentListener.java 22567 2011-07-27 23:20:32Z julien.eluard $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.module.launcher;
12  
13  /**
14   * Convenience implementation of DeploymentListener.  Default 
15   * method implementations are no-ops.  Sub-classes can implement 
16   * the DeploymentListener interface without having to override 
17   * all methods.
18   * 
19   * This was implemented so that DeploymentStatusTracker would not need 
20   * to provide default implementations of undeployment events.
21   * 
22   */
23  public class AbstractDeploymentListener implements DeploymentListener
24  {
25  
26      @Override
27      public void onDeploymentStart(String appName)
28      {
29          //No-op default
30      }
31  
32      @Override
33      public void onDeploymentSuccess(String appName)
34      {
35          //No-op default
36      }
37  
38      @Override
39      public void onDeploymentFailure(String appName, Throwable cause)
40      {
41          //No-op default
42      }
43  
44      @Override
45      public void onUndeploymentStart(String appName)
46      {
47          //No-op default
48      }
49  
50      @Override
51      public void onUndeploymentSuccess(String appName)
52      {
53          //No-op default
54      }
55  
56      @Override
57      public void onUndeploymentFailure(String appName, Throwable cause)
58      {
59          //No-op default
60      }
61  
62  }