KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > bindings > BindingManager


1 package org.objectweb.celtix.bindings;
2
3 import org.objectweb.celtix.BusException;
4
5 /**
6  * The manager interface represents a repository for accessing
7  * <code>BindingFactory</code>s.
8  *
9  * Provides methods necessary for registering, deregistering or retrieving of
10  * BindingFactorys.
11  */

12 public interface BindingManager {
13
14     /**
15      * Registers a BindingFactory using the provided name.
16      *
17      * @param name The name of the BindingFactory.
18      * @param binding The instance of the class that implements the
19      * BindingFactory interface.
20      * @throws BusException If there is an error registering the BindingFactory.
21      */

22     void registerBinding(String JavaDoc name,
23         BindingFactory binding) throws BusException;
24     
25     /**
26      * Deregisters the BindingFactory with the provided name.
27      *
28      * @param name The name of the BindingFactory.
29      * @throws BusException If there is an error deregistering the name.
30      */

31     void deregisterBinding(String JavaDoc name)
32         throws BusException;
33
34     /**
35      * Retrieves the BindingFactory registered with the given name.
36      *
37      * @param name The name of the BindingFactory.
38      * @return BindingFactory The registered BindingFactory.
39      * @throws BusException If there is an error retrieving the BindingFactory.
40      */

41     BindingFactory getBindingFactory(String JavaDoc name) throws BusException;
42     
43     /**
44      * Shuts down the BindingManager and do clean up things.
45      */

46     void shutdown();
47 }
48
Popular Tags