当前页面:
在线文档首页 >
JBoss RULES 4.0.0.11754MR2 API 英文版文档
ByteArrayClassLoader (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档
org.drools.resource.util
Class ByteArrayClassLoader
java.lang.Object
java.lang.ClassLoader
org.drools.resource.util.ByteArrayClassLoader
public class ByteArrayClassLoader
- extends ClassLoader
A class loader for in memory byte[] resources
- Author:
- etirelli
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 |
ByteArrayClassLoader
public ByteArrayClassLoader(ClassLoader parentClassLoader)
addResource
public void addResource(String name,
byte[] bytecode)
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.