org.mule.lifecycle
Class DefaultLifecyclePair

java.lang.Object
  extended by org.mule.lifecycle.DefaultLifecyclePair
All Implemented Interfaces:
LifecyclePair

public class DefaultLifecyclePair
extends Object
implements LifecyclePair

A coupling of two opposite LifecyclePhase instances such as initialise and dispose or start and stop Mule treats lifecycle in pairs in order to return system state to a level consistency when an opposite lifecycle method is called.


Constructor Summary
DefaultLifecyclePair(LifecyclePhase begin, LifecyclePhase end)
           
 
Method Summary
 LifecyclePhase getBegin()
          The beginning lifecycle phase in the pair i.e.
 LifecyclePhase getEnd()
          The end lifecycle phase in the pair i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLifecyclePair

public DefaultLifecyclePair(LifecyclePhase begin,
                            LifecyclePhase end)
Method Detail

getBegin

public LifecyclePhase getBegin()
Description copied from interface: LifecyclePair
The beginning lifecycle phase in the pair i.e. initialise or start

Specified by:
getBegin in interface LifecyclePair
Returns:
The beginning lifecycle phase in the pair

getEnd

public LifecyclePhase getEnd()
Description copied from interface: LifecyclePair
The end lifecycle phase in the pair i.e. dispose or stop

Specified by:
getEnd in interface LifecyclePair
Returns:
The end lifecycle phase in the pair


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