1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
package org.mule.api.lifecycle; |
11 | |
|
12 | |
import org.mule.api.MuleContext; |
13 | |
import org.mule.api.MuleException; |
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 fireLifecycle(MuleContext muleContext, String currentPhase) throws MuleException; |
32 | |
|
33 | |
void addOrderedLifecycleObject(LifecycleObject lco); |
34 | |
|
35 | |
void removeOrderedLifecycleObject(LifecycleObject lco); |
36 | |
|
37 | |
Set getOrderedLifecycleObjects(); |
38 | |
|
39 | |
void setOrderedLifecycleObjects(Set orderedLifecycleObjects); |
40 | |
|
41 | |
Class[] getIgnoredObjectTypes(); |
42 | |
|
43 | |
void setIgnoredObjectTypes(Class[] ignorredObjectTypes); |
44 | |
|
45 | |
Class getLifecycleClass(); |
46 | |
|
47 | |
void setLifecycleClass(Class lifecycleClass); |
48 | |
|
49 | |
String getName(); |
50 | |
|
51 | |
Set getSupportedPhases(); |
52 | |
|
53 | |
void setSupportedPhases(Set supportedPhases); |
54 | |
|
55 | |
void registerSupportedPhase(String phase); |
56 | |
|
57 | |
boolean isPhaseSupported(String phase); |
58 | |
|
59 | |
void applyLifecycle(Object o) throws LifecycleException; |
60 | |
|
61 | |
int getRegistryScope(); |
62 | |
|
63 | |
void setRegistryScope(int registryScope); |
64 | |
|
65 | |
String getOppositeLifecyclePhase(); |
66 | |
|
67 | |
} |