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

PackageCompilationData.PackageClassLoader (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.rule
Class PackageCompilationData.PackageClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.drools.rule.PackageCompilationData.PackageClassLoader
Enclosing class:
PackageCompilationData

public class PackageCompilationData.PackageClassLoader
extends ClassLoader

Lifted and adapted from Jakarta commons-jci

Author:
mproctor

Constructor Summary
PackageCompilationData.PackageClassLoader(ClassLoader parentClassLoader)
           
 
Method Summary
 Class fastFindClass(String name)
           
protected  Class findClass(String name)
           
 InputStream getResourceAsStream(String name)
           
protected  Class loadClass(String name, boolean resolve)
          Javadocs recommend that this method not be overloaded.
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, 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

PackageCompilationData.PackageClassLoader

public PackageCompilationData.PackageClassLoader(ClassLoader parentClassLoader)
Method Detail

fastFindClass

public Class fastFindClass(String name)

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

getResourceAsStream

public InputStream getResourceAsStream(String name)
Overrides:
getResourceAsStream in class ClassLoader


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