KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mule > registry > Registry


1 /*
2  * $Id: Registry.java 3798 2006-11-04 04:07:14Z aperepel $
3  * --------------------------------------------------------------------------------------
4  * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
5  *
6  * The software in this package is published under the terms of the MuleSource MPL
7  * license, a copy of which has been included with this distribution in the
8  * LICENSE.txt file.
9  */

10
11 package org.mule.registry;
12
13 import org.mule.ManagementContext;
14
15 /**
16  * @author <a HREF="mailto:gnt@codehaus.org">Guillaume Nodet</a>
17  */

18 public interface Registry
19 {
20
21     String JavaDoc getStoreLocation();
22
23     RegistryComponent[] getComponents();
24
25     RegistryComponent getComponent(String JavaDoc name);
26
27     ManagementContext getManagementContext();
28
29     RegistryComponent addComponent(String JavaDoc name, ComponentType type) throws RegistryException;
30
31     /**
32      * Remove a registered component from the list. Internal use only.
33      *
34      * @param component the component to remove
35      */

36     void removeComponent(RegistryComponent component);
37
38     /**
39      * Return all engines.
40      *
41      * @return
42      */

43     RegistryComponent[] getComponents(ComponentType type);
44
45     RegistryComponent addTransientComponent(String JavaDoc name,
46                                             ComponentType type,
47                                             Object JavaDoc component,
48                                             Object JavaDoc bootstrap) throws RegistryException;
49
50     Library[] getLibraries();
51
52     Library getLibrary(String JavaDoc name);
53
54     Library addLibrary(String JavaDoc name) throws RegistryException;
55
56     void removeLibrary(Library library);
57
58     Assembly[] getAssemblies();
59
60     Assembly getAssembly(String JavaDoc name);
61
62     Assembly addAssembly(String JavaDoc name);
63
64     void removeAssembly(Assembly assembly);
65
66     void addTransientUnit(String JavaDoc suName, RegistryComponent component, String JavaDoc 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 JavaDoc name, ComponentType type);
76
77     Assembly createAssembly(String JavaDoc name);
78
79     Unit createUnit(String JavaDoc name);
80
81     Library createLibrary(String JavaDoc name);
82 }
83
Popular Tags