Codota Logo
JBossWSBusFactory.getClassLoaderDefaultBus
Code IndexAdd Codota to your IDE (free)

How to use
getClassLoaderDefaultBus
method
in
org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusFactory

Best Java code snippets using org.jboss.wsf.stack.cxf.client.configuration.JBossWSBusFactory.getClassLoaderDefaultBus (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.jboss.ws.cxf/jbossws-cxf-client

private Bus getOrCreateBus(String strategy, ClassLoader threadContextClassLoader) {
 Bus bus = null;
 if (THREAD_BUS_STRATEGY.equals(strategy))
 {
   bus = setValidThreadDefaultBus();
 }
 else if (NEW_BUS_STRATEGY.equals(strategy))
 {
   bus = ClientBusSelector.getInstance().createNewBus();
   //to prevent issues with CXF code using the default thread bus instead of the one returned here,
   //set the new bus as thread one, given the line above could have not done this if the current
   //thread is already assigned a bus
   BusFactory.setThreadDefaultBus(bus);
 }
 else if (TCCL_BUS_STRATEGY.equals(strategy))
 {
   bus = JBossWSBusFactory.getClassLoaderDefaultBus(threadContextClassLoader, ClientBusSelector.getInstance());
   //to prevent issues with CXF code using the default thread bus instead of the one returned here,
   //set the bus as thread one, given the line above could have not done this if we already had a
   //bus for the classloader and hence we did not create a new one
   BusFactory.setThreadDefaultBus(bus);
 }
 return bus;
}
org.jboss.wsf.stack.cxf.client.configurationJBossWSBusFactorygetClassLoaderDefaultBus

Javadoc

Gets the default bus for the given classloader

Popular methods of JBossWSBusFactory

  • <init>
  • createBus
  • getDefaultBus
    Gets (and internally sets) the default bus after having set the thread context class loader to the p
  • clearDefaultBusForAnyClassLoader
    Removes a bus from being the default bus for any classloader
  • initializeBus
  • newInstance
  • possiblySetDefaultBus

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • getSharedPreferences (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • String (java.lang)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now