|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.BusFactory
public abstract class BusFactory
| Field Summary | |
|---|---|
static String |
BUS_FACTORY_PROPERTY_NAME
|
static String |
DEFAULT_BUS_FACTORY
|
protected static Bus |
defaultBus
|
protected static Map<Thread,Bus> |
threadBusses
|
| Constructor Summary | |
|---|---|
BusFactory()
|
|
| Method Summary | |
|---|---|
static void |
clearDefaultBusForAnyThread(Bus bus)
Removes a bus from being a thread default bus for any thread. |
abstract Bus |
createBus()
Creates a new bus. |
static Bus |
getDefaultBus()
Returns the default bus, creating it if necessary. |
static Bus |
getDefaultBus(boolean createIfNeeded)
Returns the default bus |
static Bus |
getThreadDefaultBus()
Gets the default bus for the thread. |
static Bus |
getThreadDefaultBus(boolean createIfNeeded)
Gets the default bus for the thread, creating if needed |
protected void |
initializeBus(Bus bus)
|
static BusFactory |
newInstance()
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 |
static BusFactory |
newInstance(String className)
Create a new BusFactory |
static boolean |
possiblySetDefaultBus(Bus bus)
Sets the default bus if a default bus is not already set. |
static void |
setDefaultBus(Bus bus)
Sets the default bus. |
static void |
setThreadDefaultBus(Bus bus)
Sets the default bus for the thread. |
| 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_FACTORY_PROPERTY_NAME
public static final String DEFAULT_BUS_FACTORY
protected static Bus defaultBus
protected static Map<Thread,Bus> threadBusses
| Constructor Detail |
|---|
public BusFactory()
| Method Detail |
|---|
public abstract Bus createBus()
BusFactory may offer differently
parameterized methods for creating a bus, all factories support
this no-arg factory method.
public static Bus getDefaultBus()
public static Bus getDefaultBus(boolean createIfNeeded)
createIfNeeded - Set to true to create a default bus if one doesn't exist
public static void setDefaultBus(Bus bus)
bus - the default bus.public static void setThreadDefaultBus(Bus bus)
bus - the default bus.public static Bus getThreadDefaultBus()
public static Bus getThreadDefaultBus(boolean createIfNeeded)
createIfNeeded - Set to true to create a default bus if one doesn't exist
public static void clearDefaultBusForAnyThread(Bus bus)
This is tipically done when a bus has ended its lifecycle (i.e.: a call
to Bus.shutdown(boolean) was invoked) and it wants to remove any
reference to itself for any thread.
bus - the bus to removepublic static boolean possiblySetDefaultBus(Bus bus)
bus - the default bus.
public static BusFactory newInstance()
public static BusFactory newInstance(String className)
className - The class of the BusFactory to create. If null, uses the
default search algorithm.
protected void initializeBus(Bus bus)
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||