| java.lang.Object org.objectweb.celtix.Bus
All known Subclasses: org.objectweb.celtix.bus.busimpl.CeltixBus,
Bus | abstract public class Bus (Code) | | The Bus class provides access to configuration, factories and managers
for use by an application.
|
Method Summary | |
abstract public void | addListener(BusEventListener l, BusEventFilter filter) Adds an event listener to the current Bus . | static void | clearCurrent() Clear current for all threads. | static void | clearDefault() | abstract public BindingManager | getBindingManager() Returns the BindingManager of this Bus . | abstract public String | getBusID() | public static Bus | getByID(String id) Returns the LAST Bus that was created with the given ID. | abstract public Configuration | getConfiguration() Returns the Configuration of this Bus . | public static Bus | getCurrent() Returns the current Bus on this thread. | abstract public EndpointRegistry | getEndpointRegistry() | abstract public BusEventCache | getEventCache() Provides access to BusEventCache associated with the Bus . | abstract public InstrumentationManager | getInstrumentationManager() | abstract public BusLifeCycleManager | getLifeCycleManager() Returns the BusLifeCycleManager of this Bus . | abstract public PluginManager | getPluginManager() Returns the PluginManager of this Bus . | abstract public ResourceManager | getResourceManager() Returns the ResourceManager of this Bus . | abstract public TransportFactoryManager | getTransportFactoryManager() Returns the TransportFactoryManager of this Bus . | abstract public WSDLManager | getWSDLManager() Returns the ClientRegistry of this Bus . | abstract public WorkQueueManager | getWorkQueueManager() Returns the WorkQueueManager of this Bus . | public static synchronized Bus | init() Returns a newly created and fully initialised Bus . | public static synchronized Bus | init(String[] args) Returns a newly created and fully initialised Bus .
Parameters: args - any args, such as domain name, bus class, and other configurationoptions that can be used to initialize this Bus . | public static synchronized Bus | init(String[] args, Map<String, Object> properties) Returns a newly created and fully initialised Bus .
Parameters: args - any args, such as domain name, bus class, and other configurationoptions that can be used to initialize this Bus . Parameters: properties - any properties, such as bus identifier, bus class, and other configurationoptions that can be used to identify and initialize this Bus . | public static synchronized Bus | init(String[] args, Map<String, Object> properties, ClassLoader classLoader) Returns a newly created and fully initialised Bus .
Parameters: args - any args, such as domain name, bus class, and other configurationoptions that can be used to initialize this Bus . Parameters: properties - any properties, such as domain name, bus class, and other configurationoptions that can be used to initialize this Bus . | abstract public void | initialize(String[] args, Map<String, Object> properties) | protected void | removeByID(String id) | abstract public void | removeListener(BusEventListener l) Removes the specified event listener from the Bus . | abstract public void | run() Starts processing bus events, and returns only after the Bus has been shut down
(from another thread). | abstract public void | sendEvent(BusEvent event) Sends the event specified to the Bus .
Parameters: event - The BusEvent to send. | public static void | setCurrent(Bus bus) Sets the current Bus . | abstract public void | shutdown(boolean wait) Shuts down the Bus . |
BUS_CLASS_PROPERTY | final public static String BUS_CLASS_PROPERTY(Code) | | |
addListener | abstract public void addListener(BusEventListener l, BusEventFilter filter) throws BusException(Code) | | Adds an event listener to the current Bus .
Parameters: l - The BusEvenetListener to be added. Parameters: filter - A BusEventFilter to be applied to the listener. throws: BusException - If there is an error adding listener. |
clearCurrent | static void clearCurrent()(Code) | | Clear current for all threads. For use in unit testing
|
clearDefault | static void clearDefault()(Code) | | |
getBindingManager | abstract public BindingManager getBindingManager()(Code) | | Returns the BindingManager of this Bus .
BindingManager the binding manager of this Bus . |
getBusID | abstract public String getBusID()(Code) | | Returns the BusID of this Bus
String BusID of this Bus |
getByID | public static Bus getByID(String id)(Code) | | Returns the LAST Bus that was created with the given ID. If
multiple buses are created with the same ID, only the last is
saved for access later.
The Bus objects are only held via a WeakReference. Thus, if
something else doesn't hold onto it, it will be garbage collected
and this method will return null.
Parameters: id - The last bus by the given ID. |
getConfiguration | abstract public Configuration getConfiguration()(Code) | | Returns the Configuration of this Bus .
Configuration the configuration of this bus . |
getCurrent | public static Bus getCurrent()(Code) | | Returns the current Bus on this thread. If no bus
has been initialised on this thread, return the default bus.
the current Bus on this thread. |
getEndpointRegistry | abstract public EndpointRegistry getEndpointRegistry()(Code) | | Get the Endpoint Registry from bus , which contains the jaxws endpoint reference
|
getEventCache | abstract public BusEventCache getEventCache()(Code) | | Provides access to BusEventCache associated with the Bus .
BusEventCache The BusEventCache object. See Also: BusEventCache |
getInstrumentationManager | abstract public InstrumentationManager getInstrumentationManager()(Code) | | Returns the InstrumenatationManager of this Bus
InstrumentationManager of this Bus |
getLifeCycleManager | abstract public BusLifeCycleManager getLifeCycleManager()(Code) | | Returns the BusLifeCycleManager of this Bus .
BusLifeCycleManager of this Bus . |
getPluginManager | abstract public PluginManager getPluginManager()(Code) | | Returns the PluginManager of this Bus .
PluginManager the plugin manager of this Bus . |
getResourceManager | abstract public ResourceManager getResourceManager()(Code) | | Returns the ResourceManager of this Bus .
ResourceManager of this Bus . |
getTransportFactoryManager | abstract public TransportFactoryManager getTransportFactoryManager()(Code) | | Returns the TransportFactoryManager of this Bus .
TransportRegistry the servant registry of this Bus . |
getWSDLManager | abstract public WSDLManager getWSDLManager()(Code) | | Returns the ClientRegistry of this Bus .
WSDLManager the wsdl manager of this Bus . |
getWorkQueueManager | abstract public WorkQueueManager getWorkQueueManager()(Code) | | Returns the WorkQueueManager of this Bus .
WorkQueueManager of this Bus . |
init | public static synchronized Bus init() throws BusException(Code) | | Returns a newly created and fully initialised Bus .
Bus the newly created Bus . throws: BusException - If there is an error initializing Bus . |
init | public static synchronized Bus init(String[] args) throws BusException(Code) | | Returns a newly created and fully initialised Bus .
Parameters: args - any args, such as domain name, bus class, and other configurationoptions that can be used to initialize this Bus . Bus the newly created Bus . throws: BusException - If there is an error initializing Bus . |
init | public static synchronized Bus init(String[] args, Map<String, Object> properties) throws BusException(Code) | | Returns a newly created and fully initialised Bus .
Parameters: args - any args, such as domain name, bus class, and other configurationoptions that can be used to initialize this Bus . Parameters: properties - any properties, such as bus identifier, bus class, and other configurationoptions that can be used to identify and initialize this Bus . The properties are superceded by the settings in the args parameter,and they in turn supercede system properties. Bus the newly created Bus . throws: BusException - If there is an error initializing Bus . |
init | public static synchronized Bus init(String[] args, Map<String, Object> properties, ClassLoader classLoader) throws BusException(Code) | | Returns a newly created and fully initialised Bus .
Parameters: args - any args, such as domain name, bus class, and other configurationoptions that can be used to initialize this Bus . Parameters: properties - any properties, such as domain name, bus class, and other configurationoptions that can be used to initialize this Bus . The properties are superceded by the settings in the args parameter,and they in turn supercede system properties. Parameters: classLoader - an optional classloader to use when instantiating a Bus needs to be instantiated (defaults to the current thread's context classloader). Bus the newly created Bus . throws: BusException - If there is an error initializing Bus . |
removeListener | abstract public void removeListener(BusEventListener l) throws BusException(Code) | | Removes the specified event listener from the Bus .
Parameters: l - The BusEventListener to be removed. throws: BusException - If there is an error removing the listener. |
run | abstract public void run()(Code) | | Starts processing bus events, and returns only after the Bus has been shut down
(from another thread).
|
sendEvent | abstract public void sendEvent(BusEvent event)(Code) | | Sends the event specified to the Bus .
Parameters: event - The BusEvent to send. |
setCurrent | public static void setCurrent(Bus bus)(Code) | | Sets the current Bus . If a bus is explicitly
initialised on a thread, this is the current bus. If no thread
has been initialised (implicitly or explicitly), setting the
current bus will set the default bus for all threads
Parameters: bus - the current bus |
shutdown | abstract public void shutdown(boolean wait) throws BusException(Code) | | Shuts down the Bus .
Parameters: wait - If true , waits for the Bus to shutdown before returning, otherwise returns immediately. throws: BusException - |
|
|