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.registry.Registry;
14 import org.mule.lifecycle.LifecycleObject;
15
16 import java.util.Set;
17
18
19
20
21
22
23
24
25
26 public interface LifecyclePhase
27 {
28
29 String ALL_PHASES = "all";
30
31 void addOrderedLifecycleObject(LifecycleObject lco);
32
33 void removeOrderedLifecycleObject(LifecycleObject lco);
34
35 Set<LifecycleObject> getOrderedLifecycleObjects();
36
37 void setOrderedLifecycleObjects(Set<LifecycleObject> orderedLifecycleObjects);
38
39 Class<?>[] getIgnoredObjectTypes();
40
41 void setIgnoredObjectTypes(Class<?>[] ignorredObjectTypes);
42
43 Class<?> getLifecycleClass();
44
45 void setLifecycleClass(Class<?> lifecycleClass);
46
47 String getName();
48
49 Set<String> getSupportedPhases();
50
51 void setSupportedPhases(Set<String> supportedPhases);
52
53 void registerSupportedPhase(String phase);
54
55 boolean isPhaseSupported(String phase);
56
57 void applyLifecycle(Object o) throws LifecycleException;
58
59 String getOppositeLifecyclePhase();
60
61 }