public interface ParallelClassLoader extends BaseClassLoader
The ClasspathManager
handles parallel capable class loaders
differently from other class loaders. For parallel capable
class loaders when ClasspathManager.findLocalClass(String)
is
called a lock will be obtained for the class name being searched while
calling BaseClassLoader.publicFindLoaded(String)
and
BaseClassLoader.defineClass(String, byte[], ClasspathEntry, org.eclipse.osgi.baseadaptor.bundlefile.BundleEntry)
.
This prevents other threads from trying to searching for the same class at the
same time. For other class loaders the class loader lock is obtained
instead. This prevents other threads from trying to search for any
class while the lock is held.
Note: This interface is part of an interim API that is still under development. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will may be broken (repeatedly) as the API evolves.
Modifier and Type | Method and Description |
---|---|
boolean |
isParallelCapable()
Indicates if this class loader is parallel capable.
|
createClassPathEntry, defineClass, getClasspathManager, getDomain, publicDefinePackage, publicFindLoaded, publicGetPackage
attachFragment, close, findEntries, findLocalClass, findLocalResource, findLocalResources, getDelegate, getParent, getResource, getResources, initialize, listLocalResources, listResources, loadClass
getBundle
boolean isParallelCapable()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.