Class JBossWSBusFactory


  • public class JBossWSBusFactory
    extends CXFBusFactory
    JBossWS version of @see{org.apache.cxf.BusFactory}.
    Since:
    16-Jun-2010
    Author:
    alessio.soldano@jboss.com
    • Constructor Detail

      • JBossWSBusFactory

        public JBossWSBusFactory()
    • Method Detail

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