1
2
3
4
5
6
7
8
9
10 package org.mule.api.lifecycle;
11
12 import org.mule.api.MuleException;
13 import org.mule.api.MuleContext;
14
15 import java.util.Set;
16
17
18
19
20
21
22 public interface LifecycleManager
23 {
24 Set getLifecycles();
25
26 void setLifecycles(Set lifecycles);
27
28 void registerLifecycle(LifecyclePhase lci);
29
30 void firePhase(MuleContext muleContext, String phase) throws MuleException;
31
32 String getCurrentPhase();
33
34 String getExecutingPhase();
35
36 void reset();
37
38 boolean isPhaseComplete(String phaseName);
39
40 void applyLifecycle(MuleContext muleContext, Object object) throws MuleException;
41
42 void checkPhase(String name) throws IllegalStateException;
43 }