1 10 11 package org.mule.registry; 12 13 import javax.management.ObjectName ; 14 15 import java.util.List ; 16 17 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 34 void start() throws RegistryException; 35 36 41 void stop() throws RegistryException; 42 43 48 void shutDown() throws RegistryException; 49 50 55 Library[] getLibraries(); 56 57 62 Unit[] getUnits(); 63 64 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 82 Object getComponent(); 83 84 void setComponent(Object component); 85 86 91 RegistryDescriptor getDescriptor() throws RegistryException; 92 93 void setDescriptor(RegistryDescriptor descriptor) throws RegistryException; 94 95 100 ObjectName getObjectName(); 101 102 107 String getWorkspaceRoot(); 108 109 void setWorkspaceRoot(String workspaceRoot); 110 111 116 void install() throws RegistryException; 117 118 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 } 133 | Popular Tags |