View Javadoc

1   /*
2    * $Id: ContainerManagedLifecyclePhase.java 10489 2008-01-23 17:53:38Z dfeist $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.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  package org.mule.lifecycle;
11  
12  import org.mule.api.MuleException;
13  import org.mule.api.MuleContext;
14  
15  /**
16   * A container-managed lifecycle phase is called by the container itself. This class acts as a marker to enable
17   * tracking of phases even if Mule does not initiate the phase
18   */
19  public class ContainerManagedLifecyclePhase extends DefaultLifecyclePhase
20  {
21      public ContainerManagedLifecyclePhase(String name, Class lifecycleClass, String oppositePhaseName)
22      {
23          super(name, lifecycleClass, oppositePhaseName);
24      }
25  
26      //@java.lang.Override
27      public void fireLifecycle(MuleContext muleContext, String currentPhase) throws MuleException
28      {
29          //The container manages this lifecycle
30          return;
31      }
32  }