|
Celtix User APIs | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.celtix.Bus
public abstract class Bus
The Bus class provides access to configuration, factories and managers for use by an application.
Field Summary | |
---|---|
static String |
BUS_CLASS_PROPERTY
|
Constructor Summary | |
---|---|
Bus()
|
Method Summary | |
---|---|
abstract BindingManager |
getBindingManager()
Returns the BindingManager of this Bus . |
abstract Configuration |
getConfiguration()
Returns the Configuration of this Bus . |
static Bus |
getCurrent()
Returns the current Bus on this thread. |
abstract HandlerFactoryManager |
getHandlerFactoryManager()
Returns the HandlerFactoryManager of this Bus . |
abstract BusLifeCycleManager |
getLifeCycleManager()
Returns the BusLifeCycleManager of this Bus . |
abstract PluginManager |
getPluginManager()
Returns the PluginManager of this Bus . |
abstract org.objectweb.celtix.resource.ResourceManager |
getResourceManager()
Returns the ResourceManager of this Bus . |
abstract TransportFactoryManager |
getTransportFactoryManager()
Returns the TransportFactoryManager of this Bus . |
abstract WorkQueueManager |
getWorkQueueManager()
Returns the WorkQueueManager of this Bus . |
abstract WSDLManager |
getWSDLManager()
Returns the ClientRegistry of this Bus . |
static Bus |
init()
Returns a newly created and fully initialised Bus . |
static Bus |
init(String[] args)
Returns a newly created and fully initialised Bus . |
static Bus |
init(String[] args,
Map<String,Object> properties)
Returns a newly created and fully initialised Bus . |
static Bus |
init(String[] args,
Map<String,Object> properties,
ClassLoader classLoader)
Returns a newly created and fully initialised Bus . |
abstract void |
initialize(String[] args,
Map<String,Object> properties)
|
abstract void |
run()
Starts processing bus events, and returns only after the Bus has been shut down
(from another thread). |
static void |
setCurrent(Bus bus)
Sets the current Bus . |
abstract void |
shutdown(boolean wait)
Shuts down the Bus . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String BUS_CLASS_PROPERTY
Constructor Detail |
---|
public Bus()
Method Detail |
---|
public static Bus init() throws BusException
Bus
.
Bus
.
BusException
- If there is an error initializing Bus
.public static Bus init(String[] args) throws BusException
Bus
.
args
- any args, such as domain name, bus class, and other configuration
options that can be used to initialize this Bus
.
Bus
.
BusException
- If there is an error initializing Bus
.public static Bus init(String[] args, Map<String,Object> properties) throws BusException
Bus
.
args
- any args, such as domain name, bus class, and other configuration
options that can be used to initialize this Bus
.properties
- any properties, such as bus identifier, bus class, and other configuration
options 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
.
BusException
- If there is an error initializing Bus
.public static Bus init(String[] args, Map<String,Object> properties, ClassLoader classLoader) throws BusException
Bus
.
args
- any args, such as domain name, bus class, and other configuration
options that can be used to initialize this Bus
.properties
- any properties, such as domain name, bus class, and other configuration
options 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.classLoader
- an optional classloader to use when instantiating a Bus
needs to be instantiated (defaults to the current thread's context classloader).
Bus
.
BusException
- If there is an error initializing Bus
.public static Bus getCurrent()
Bus
on this thread. If no bus
has been initialised on this thread, return the default bus.
Bus
on this thread.public static void setCurrent(Bus bus)
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
bus
- the current buspublic abstract void shutdown(boolean wait) throws BusException
Bus
.
wait
- If true
, waits for the Bus
to shutdown before returning, otherwise returns immediately.
BusException
public abstract Configuration getConfiguration()
Configuration
of this Bus
.
bus
.public abstract HandlerFactoryManager getHandlerFactoryManager()
HandlerFactoryManager
of this Bus
.
Bus
.public abstract TransportFactoryManager getTransportFactoryManager()
TransportFactoryManager
of this Bus
.
Bus
.public abstract BindingManager getBindingManager()
BindingManager
of this Bus
.
Bus
.public abstract WSDLManager getWSDLManager()
ClientRegistry
of this Bus
.
Bus
.public abstract PluginManager getPluginManager()
PluginManager
of this Bus
.
Bus
.public abstract BusLifeCycleManager getLifeCycleManager()
BusLifeCycleManager
of this Bus
.
Bus
.public abstract WorkQueueManager getWorkQueueManager()
WorkQueueManager
of this Bus
.
Bus
.public abstract org.objectweb.celtix.resource.ResourceManager getResourceManager()
ResourceManager
of this Bus
.
Bus
.public abstract void run()
Bus
has been shut down
(from another thread).
public abstract void initialize(String[] args, Map<String,Object> properties) throws BusException
BusException
|
Celtix User APIs | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |