Class JBossWSBusFactory
java.lang.Object
org.apache.cxf.BusFactory
org.apache.cxf.bus.CXFBusFactory
org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusFactory
JBossWS version of @see{org.apache.cxf.BusFactory}.
- Since:
- 16-Jun-2010
- Author:
- alessio.soldano@jboss.com
-
Field Summary
Fields inherited from class org.apache.cxf.BusFactory
BUS_FACTORY_PROPERTY_NAME, DEFAULT_BUS_FACTORY, defaultBus, THREAD_BUS, THREAD_BUSSES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidRemoves a bus from being the default bus for any classloaderstatic BusgetClassLoaderDefaultBus(ClassLoader classloader) Gets the default bus for the given classloaderstatic BusgetClassLoaderDefaultBus(ClassLoader classloader, ClientBusSelector clientBusSelector) Gets the default bus for the given classloader; if a new Bus is needed, the creation is delegated to the specified ClientBusSelector instance.static BusgetDefaultBus(ClassLoader contextClassLoader) Gets (and internally sets) the default bus after having set the thread context class loader to the provided one (which affects the Bus construction if it's not been created yet).protected voidinitializeBus(Bus bus) Methods inherited from class org.apache.cxf.bus.CXFBusFactory
createBus, createBusMethods inherited from class org.apache.cxf.BusFactory
clearDefaultBusForAnyThread, getAndSetThreadDefaultBus, getDefaultBus, getDefaultBus, getThreadDefaultBus, getThreadDefaultBus, newInstance, newInstance, possiblySetDefaultBus, setDefaultBus, setThreadDefaultBus
-
Constructor Details
-
JBossWSBusFactory
public JBossWSBusFactory()
-
-
Method Details
-
createBus
- Overrides:
createBusin classCXFBusFactory
-
initializeBus
- Overrides:
initializeBusin classBusFactory
-
getDefaultBus
Gets (and internally sets) the default bus after having set the thread context class loader to the provided one (which affects the Bus construction if it's not been created yet). The former thread context class loader is restored before returning to the caller.- Parameters:
contextClassLoader-- Returns:
- the default bus
-
getClassLoaderDefaultBus
public static Bus getClassLoaderDefaultBus(ClassLoader classloader, ClientBusSelector clientBusSelector) Gets the default bus for the given classloader; if a new Bus is needed, the creation is delegated to the specified ClientBusSelector instance.- Parameters:
classloader-clientBusSelector-- Returns:
-
getClassLoaderDefaultBus
Gets the default bus for the given classloader- Parameters:
classloader-- Returns:
-
clearDefaultBusForAnyClassLoader
Removes a bus from being the default bus for any classloader- Parameters:
bus-
-