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