Class JBossWSBusFactory
- java.lang.Object
-
- org.apache.cxf.BusFactory
-
- org.apache.cxf.bus.CXFBusFactory
-
- org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusFactory
-
public class JBossWSBusFactory extends CXFBusFactory
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 Constructor Description JBossWSBusFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidclearDefaultBusForAnyClassLoader(Bus bus)Removes a bus from being the default bus for any classloaderBuscreateBus(Map<Class<?>,Object> extensions, Map<String,Object> properties)static 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, createBus
-
Methods inherited from class org.apache.cxf.BusFactory
clearDefaultBusForAnyThread, getAndSetThreadDefaultBus, getDefaultBus, getDefaultBus, getThreadDefaultBus, getThreadDefaultBus, newInstance, newInstance, possiblySetDefaultBus, setDefaultBus, setThreadDefaultBus
-
-
-
-
Method Detail
-
createBus
public Bus createBus(Map<Class<?>,Object> extensions, Map<String,Object> properties)
- Overrides:
createBusin classCXFBusFactory
-
initializeBus
protected void initializeBus(Bus bus)
- Overrides:
initializeBusin classBusFactory
-
getDefaultBus
public static Bus getDefaultBus(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). 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
public static Bus getClassLoaderDefaultBus(ClassLoader classloader)
Gets the default bus for the given classloader- Parameters:
classloader-- Returns:
-
clearDefaultBusForAnyClassLoader
public static void clearDefaultBusForAnyClassLoader(Bus bus)
Removes a bus from being the default bus for any classloader- Parameters:
bus-
-
-