View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.lifecycle;
8   
9   import org.mule.api.MuleException;
10  import org.mule.api.lifecycle.LifecycleCallback;
11  
12  /**
13   * A lifecycle callback that does nothing. Can be used to transition a {@link org.mule.api.lifecycle.LifecycleManager} to
14   * the next phase without executing logic.
15   *
16   * USers should never use this object themselves, it provides an internal Mule function.
17   *
18   * @since 3.0
19   */
20  public class EmptyLifecycleCallback<O> implements LifecycleCallback<O>
21  {
22      public void onTransition(String phaseName, O object) throws MuleException
23      {
24          //do nothing
25      }
26  }