1 10 11 package org.mule.registry; 12 13 import org.mule.ManagementContext; 14 15 18 public interface Registry 19 { 20 21 String getStoreLocation(); 22 23 RegistryComponent[] getComponents(); 24 25 RegistryComponent getComponent(String name); 26 27 ManagementContext getManagementContext(); 28 29 RegistryComponent addComponent(String name, ComponentType type) throws RegistryException; 30 31 36 void removeComponent(RegistryComponent component); 37 38 43 RegistryComponent[] getComponents(ComponentType type); 44 45 RegistryComponent addTransientComponent(String name, 46 ComponentType type, 47 Object component, 48 Object bootstrap) throws RegistryException; 49 50 Library[] getLibraries(); 51 52 Library getLibrary(String name); 53 54 Library addLibrary(String name) throws RegistryException; 55 56 void removeLibrary(Library library); 57 58 Assembly[] getAssemblies(); 59 60 Assembly getAssembly(String name); 61 62 Assembly addAssembly(String name); 63 64 void removeAssembly(Assembly assembly); 65 66 void addTransientUnit(String suName, RegistryComponent component, String installRoot) 67 throws RegistryException; 68 69 void start() throws RegistryException; 70 71 void shutDown() throws RegistryException; 72 73 void save() throws RegistryException; 74 75 RegistryComponent createComponent(String name, ComponentType type); 76 77 Assembly createAssembly(String name); 78 79 Unit createUnit(String name); 80 81 Library createLibrary(String name); 82 } 83 | Popular Tags |