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.api.lifecycle; 8 9 /** 10 * A safe facade for lifecycle manager that objects can use to monitor its own state 11 * 12 * @since 3.0 13 */ 14 public interface LifecycleState 15 { 16 boolean isInitialised(); 17 18 boolean isInitialising(); 19 20 boolean isStarted(); 21 22 boolean isStarting(); 23 24 boolean isStopped(); 25 26 boolean isStopping(); 27 28 boolean isDisposed(); 29 30 boolean isDisposing(); 31 32 boolean isPhaseComplete(String phase); 33 34 boolean isPhaseExecuting(String phase); 35 36 boolean isValidTransition(String phase); 37 38 }