KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > transports > TransportFactoryManager


1 package org.objectweb.celtix.transports;
2
3 import org.objectweb.celtix.BusException;
4
5 /**
6  * The TransportFactoryManager provides an interface to register and retrieve
7  * transport factories.
8  */

9 public interface TransportFactoryManager {
10
11     /**
12      * Associates a name, often a URI, with a <code>TransportFactory</code>
13      * when registering with the <code>Bus</code>'s <code>TransportRegistry</code>.
14      * @param name A string containing the name used to identify the
15      * <code>TransportFactory</code>
16      * @param factory The <code>TransportFactory</code> to be registered.
17      * @throws BusException If there is an error registering transport factory.
18      */

19     void registerTransportFactory(String JavaDoc name,
20         TransportFactory factory) throws BusException;
21
22     /**
23      * Unregister a <code>TransportFactory</code>.
24      * @param name A string containing the name of the
25      * <code>TransportFactory</code>.
26      * @throws BusException If there is an error deregistering
27      * the transport factory.
28      */

29     void deregisterTransportFactory(String JavaDoc name)
30         throws BusException;
31     
32     /**
33      * Returns the <code>TransportFactory</code> registered with the specified name,
34      * loading the appropriate plugin if necessary.
35      *
36      * @param name
37      * @return the registered <code>TransportFactory</code>
38      * @throws BusException
39      */

40     TransportFactory getTransportFactory(String JavaDoc name) throws BusException;
41     
42     /**
43      * Shuts down the TransportFactoryManager and do clean up things.
44      */

45     void shutdown();
46 }
47
Popular Tags