Creates a new bus.
While concrete BusFactory may offer differently
parametrized methods for creating a bus, all factories support
this no-arg factory method.
the newly created bus.
getDefaultBus
public static synchronized Bus getDefaultBus()(Code)
Returns the default bus, creating it if necessary.
the default bus.
getDefaultBus
public static synchronized Bus getDefaultBus(boolean createIfNeeded)(Code)
Returns the default bus
Parameters: createIfNeeded - Set to true to create a default bus if one doesn't exist the default bus.
getThreadDefaultBus
public static synchronized Bus getThreadDefaultBus()(Code)
Gets the default bus for the thread.
the default bus.
Create a new BusFactory
The class of the BusFactory is determined by looking for the system propery:
org.apache.cxf.bus.factory
or by searching the classpath for:
META-INF/services/org.apache.cxf.bus.factory
a new BusFactory to be used to create Bus objects
Create a new BusFactory
Parameters: className - The class of the BusFactory to create. If null, uses thedefault search algorithm. a new BusFactory to be used to create Bus objects
possiblySetDefaultBus
public static synchronized boolean possiblySetDefaultBus(Bus bus)(Code)
Sets the default bus if a default bus is not already set.
Parameters: bus - the default bus. true if the bus was not set and is now set
setDefaultBus
public static synchronized void setDefaultBus(Bus bus)(Code)
Sets the default bus.
Parameters: bus - the default bus.
setThreadDefaultBus
public static synchronized void setThreadDefaultBus(Bus bus)(Code)
Sets the default bus for the thread.
Parameters: bus - the default bus.