Codota Logo
UnifiedClassLoader3
Code IndexAdd Codota to your IDE (free)

How to use
UnifiedClassLoader3
in
org.jboss.mx.loading

Best Java code snippets using org.jboss.mx.loading.UnifiedClassLoader3 (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.jboss.jbossas/jboss-as-jmx

public RepositoryClassLoader newClassLoader(final URL url, boolean addToRepository)
    throws Exception
{
 UnifiedClassLoader3 ucl = new UnifiedClassLoader3(url, null, this);
 if (addToRepository)
   this.registerClassLoader(ucl);
 return ucl;
}
origin: org.jboss.mx/jboss-jmx

  /**
  * Retruns a string representaion of this UCL.
  */
  public String toString()
  {
   StringBuffer tmp = new StringBuffer(super.toString());
   tmp.setCharAt(tmp.length()-1, ',');
   tmp.append("addedOrder=");
   tmp.append(getAddedOrder());
   tmp.append('}');
   return tmp.toString();
  }
}
origin: org.jboss.jbossas/jboss-as-jmx

/** Construct a UnifiedClassLoader and associate it with the given
* repository.
* @param url The single URL to load classes from.
* @param origURL the possibly null original URL from which url may
* be a local copy or nested jar.
* @param repository the repository this classloader delegates to
*/
public UnifiedClassLoader3(URL url, URL origURL, LoaderRepository repository)
{
 this(url, origURL);
 // set the repository reference
 this.setRepository(repository);
}
/** Construct a UnifiedClassLoader and associate it with the given
origin: org.mobicents.core/mobicents-core-jar

  public void execute() {
    ((UnifiedClassLoader3) mobicentsSbbDescriptor.getClassLoader())
        .unregister();
  }
};
origin: org.mobicents.core/mobicents-core-jar

private static void initDeployPath() {

  try {
   java.net.URL url = ((UnifiedClassLoader3)SleeContainer.class.getClassLoader()).getURL();
    java.net.URI uri = new java.net.URI(url.toExternalForm().replaceAll( " ", "%20" ));
    deployPath = new File(uri).getAbsolutePath();
  } catch (URISyntaxException e) {
    logger.error("Failed to establish path to Mobicents root deployment directory (mobicents.sar)", e);
    deployPath = null;
  }
}

origin: org.mobicents.core/mobicents-core-jar

    .unregister();
if (logger.isDebugEnabled()) {
  logger.debug("Removed class loader for SBB "
origin: org.jboss.mx/jboss-jmx

public RepositoryClassLoader newClassLoader(final URL url, boolean addToRepository)
    throws Exception
{
 UnifiedClassLoader3 ucl = new UnifiedClassLoader3(url, null, this);
 if (addToRepository)
   this.registerClassLoader(ucl);
 return ucl;
}
origin: org.jboss.mx/jboss-jmx

/** Construct a UnifiedClassLoader and associate it with the given
* repository.
* @param url The single URL to load classes from.
* @param origURL the possibly null original URL from which url may
* be a local copy or nested jar.
* @param repository the repository this classloader delegates to
*/
public UnifiedClassLoader3(URL url, URL origURL, LoaderRepository repository)
{
 this(url, origURL);
 // set the repository reference
 this.setRepository(repository);
}
/** Construct a UnifiedClassLoader and associate it with the given
origin: org.jboss.jbossas/jboss-as-jmx

  /**
  * Retruns a string representaion of this UCL.
  */
  public String toString()
  {
   StringBuffer tmp = new StringBuffer(super.toString());
   tmp.setCharAt(tmp.length()-1, ',');
   tmp.append("addedOrder=");
   tmp.append(getAddedOrder());
   tmp.append('}');
   return tmp.toString();
  }
}
origin: org.jboss.mx/jboss-jmx

public RepositoryClassLoader newClassLoader(final URL url, final URL origURL, boolean addToRepository)
    throws Exception
{
 UnifiedClassLoader3 ucl = new UnifiedClassLoader3(url, origURL, this);
 if (addToRepository)
   this.registerClassLoader(ucl);
 return ucl;
}
origin: org.jboss.mx/jboss-jmx

/** Construct a UnifiedClassLoader and associate it with the given
* repository.
* @param url The single URL to load classes from.
* @param origURL the possibly null original URL from which url may
* be a local copy or nested jar.
* @param parent the parent class loader to use
* @param repository the repository this classloader delegates to
*/
public UnifiedClassLoader3(URL url, URL origURL, ClassLoader parent,
   LoaderRepository repository)
{
 super(url, origURL, parent);
 // set the repository reference
 this.setRepository(repository);
}
origin: org.jboss.jbossas/jboss-as-jmx

public RepositoryClassLoader newClassLoader(final URL url, final URL origURL, boolean addToRepository)
    throws Exception
{
 UnifiedClassLoader3 ucl = new UnifiedClassLoader3(url, origURL, this);
 if (addToRepository)
   this.registerClassLoader(ucl);
 return ucl;
}
origin: org.jboss.jbossas/jboss-as-jmx

/** Construct a UnifiedClassLoader and associate it with the given
* repository.
* @param url The single URL to load classes from.
* @param origURL the possibly null original URL from which url may
* be a local copy or nested jar.
* @param parent the parent class loader to use
* @param repository the repository this classloader delegates to
*/
public UnifiedClassLoader3(URL url, URL origURL, ClassLoader parent,
   LoaderRepository repository)
{
 super(url, origURL, parent);
 // set the repository reference
 this.setRepository(repository);
}
origin: org.jboss.mx/jboss-jmx

/**
* Initialisation
*/
private void init()
{
 // Include a class loader with a parent to the system class loader
 ClassLoader loader = RepositoryClassLoader.class.getClassLoader();
 RepositoryClassLoader ucl = null;
 if( loader instanceof RepositoryClassLoader )
   ucl = (RepositoryClassLoader) loader;
 else
   ucl = new UnifiedClassLoader3(null, null, HeirarchicalLoaderRepository3.this);
 packageClassLoader = new PkgClassLoader(ucl, 3);
}
origin: org.jboss.jbossas/jboss-as-jmx

/**
* Initialisation
*/
private void init()
{
 // Include a class loader with a parent to the system class loader
 ClassLoader loader = RepositoryClassLoader.class.getClassLoader();
 RepositoryClassLoader ucl = null;
 if( loader instanceof RepositoryClassLoader )
   ucl = (RepositoryClassLoader) loader;
 else
   ucl = new UnifiedClassLoader3(null, null, HeirarchicalLoaderRepository3.this);
 packageClassLoader = new PkgClassLoader(ucl, 3);
}
origin: org.jboss.jbossas/jboss-as-jmx

public RepositoryClassLoader newClassLoader(final URL url, final URL origURL, boolean addToRepository)
 throws Exception
{
 UnifiedClassLoader3 ucl = null;
 if( java2ParentDelegation == false )
   ucl = new UnifiedClassLoader3(url, origURL, new NoParentClassLoader(), this);
 else
   ucl = new UnifiedClassLoader3(url, origURL, this);
 if( addToRepository )
 {
   this.addClassLoader(ucl);
 }
 return ucl;
}
origin: org.jboss.mx/jboss-jmx

public RepositoryClassLoader newClassLoader(final URL url, final URL origURL, boolean addToRepository)
 throws Exception
{
 UnifiedClassLoader3 ucl = null;
 if( java2ParentDelegation == false )
   ucl = new UnifiedClassLoader3(url, origURL, new NoParentClassLoader(), this);
 else
   ucl = new UnifiedClassLoader3(url, origURL, this);
 if( addToRepository )
 {
   this.addClassLoader(ucl);
 }
 return ucl;
}
origin: org.jboss.jbossas/jboss-as-jmx

public RepositoryClassLoader newClassLoader(final URL url, boolean addToRepository)
 throws Exception
{
 UnifiedClassLoader3 ucl = null;
 if( java2ParentDelegation == false )
   ucl = new UnifiedClassLoader3(url, null, new NoParentClassLoader(), this);
 else
   ucl = new UnifiedClassLoader3(url, null, this);
 if( addToRepository )
 {
   this.addClassLoader(ucl);
 }
 return ucl;
}
public RepositoryClassLoader newClassLoader(final URL url, final URL origURL, boolean addToRepository)
origin: org.jboss.mx/jboss-jmx

public RepositoryClassLoader newClassLoader(final URL url, boolean addToRepository)
 throws Exception
{
 UnifiedClassLoader3 ucl = null;
 if( java2ParentDelegation == false )
   ucl = new UnifiedClassLoader3(url, null, new NoParentClassLoader(), this);
 else
   ucl = new UnifiedClassLoader3(url, null, this);
 if( addToRepository )
 {
   this.addClassLoader(ucl);
 }
 return ucl;
}
public RepositoryClassLoader newClassLoader(final URL url, final URL origURL, boolean addToRepository)
origin: org.jboss.mx/jboss-jmx

private void addURLClassLoader(URLClassLoader loader)
{
 URL[] urls = loader.getURLs();
 int count = urls != null && urls.length > 0 ? urls.length : 0;
 URL origURL = count > 0 ? urls[0] : null;
 UnifiedClassLoader3 ucl3 = new UnifiedClassLoader3(origURL, origURL, this);
 addRepositoryClassLoader(ucl3);
 synchronized (classLoaders)
 {
   nonUCLClassLoader.put(loader, ucl3);
 }
 for (int i = 1; i < count; i++)
 {
   this.addClassLoaderURL(ucl3, urls[i]);
 }
}
org.jboss.mx.loadingUnifiedClassLoader3

Javadoc

An extension of UnifiedClassLoader that manages a thread based loading strategy to work around the locking problems associated with the VM initiated locking due to the synchronized loadClassInternal method of ClassLoader which cannot be overriden.

Most used methods

  • <init>
    Construct a UnifiedClassLoader and associate it with the given repository.
  • getAddedOrder
  • setRepository
  • getURL
  • unregister

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • JOptionPane (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
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