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
  • Constructor Details

    • JBossWSBusFactory

      public JBossWSBusFactory()
  • Method Details

    • createBus

      public Bus createBus(Map<Class<?>,Object> extensions, Map<String,Object> properties)
      Overrides:
      createBus in class CXFBusFactory
    • initializeBus

      protected void initializeBus(Bus bus)
      Overrides:
      initializeBus in class BusFactory
    • 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 -