站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

CompositePackageClassLoader (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.rule
Class CompositePackageClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.drools.rule.CompositePackageClassLoader

public class CompositePackageClassLoader
extends ClassLoader


Constructor Summary
CompositePackageClassLoader(ClassLoader parentClassLoader)
           
 
Method Summary
 void addClassLoader(ClassLoader classLoader)
           
protected  Class findClass(String name)
           
protected  Class loadClass(String name, boolean resolve)
          Javadocs recommend that this method not be overloaded.
 void removeClassLoader(ClassLoader classLoader)
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositePackageClassLoader

public CompositePackageClassLoader(ClassLoader parentClassLoader)
Method Detail

addClassLoader

public void addClassLoader(ClassLoader classLoader)

removeClassLoader

public void removeClassLoader(ClassLoader classLoader)

loadClass

protected Class loadClass(String name,
                          boolean resolve)
                   throws ClassNotFoundException
Javadocs recommend that this method not be overloaded. We overload this so that we can prioritise the fastFindClass over method calls to parent.loadClass(name, false); and c = findBootstrapClass0(name); which the default implementation would first - hence why we call it "fastFindClass" instead of standard findClass, this indicates that we give it a higher priority than normal.

Overrides:
loadClass in class ClassLoader
Throws:
ClassNotFoundException

findClass

protected Class findClass(String name)
                   throws ClassNotFoundException
Overrides:
findClass in class ClassLoader
Throws:
ClassNotFoundException


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.