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