1
2
3
4
5
6
7
8
9
10
11 package org.mule.registry;
12
13 import java.util.List;
14
15 import javax.management.ObjectName;
16
17
18
19
20 public interface RegistryComponent extends Entry
21 {
22
23 ComponentType getType();
24
25 void restoreState() throws RegistryException;
26
27 void saveAndShutdown() throws RegistryException;
28
29
30
31
32
33
34 void start() throws RegistryException;
35
36
37
38
39
40
41 void stop() throws RegistryException;
42
43
44
45
46
47
48 void shutDown() throws RegistryException;
49
50
51
52
53
54
55 Library[] getLibraries();
56
57
58
59
60
61
62 Unit[] getUnits();
63
64
65
66
67 List getClassPathElements();
68
69 void setClassPathElements(List elements);
70
71 boolean isClassLoaderParentFirst();
72
73 boolean isTransient();
74
75 void setTransient(boolean isTransient);
76
77
78
79
80
81
82 Object getComponent();
83
84 void setComponent(Object component);
85
86
87
88
89
90
91 RegistryDescriptor getDescriptor() throws RegistryException;
92
93 void setDescriptor(RegistryDescriptor descriptor) throws RegistryException;
94
95
96
97
98
99
100 ObjectName getObjectName();
101
102
103
104
105
106
107 String getWorkspaceRoot();
108
109 void setWorkspaceRoot(String workspaceRoot);
110
111
112
113
114
115
116 void install() throws RegistryException;
117
118
119
120
121
122
123 void uninstall() throws RegistryException;
124
125 Registry getRegistry();
126
127 ObjectName initComponent() throws Exception;
128
129 void addUnit(Unit unit);
130
131 void removeUnit(Unit unit);
132 }