Keel 2.1RC2

org.keel.core.classloader
Class KeelWeavingClassLoader

java.lang.Object
  extended byjava.lang.ClassLoader
      extended byjava.security.SecureClassLoader
          extended byjava.net.URLClassLoader
              extended byorg.keel.core.classloader.KeelURLClassLoader
                  extended byorg.keel.core.classloader.KeelWeavingClassLoader

public class KeelWeavingClassLoader
extends KeelURLClassLoader

A classloader that instruments the byte-code for every class that it loads. The instrumentation allows Aspect Oriented Programming (AOP)techniques to be introduced into the system This class is based on the AspectWerkz org.codehaus.aspectwerkz. hook.impl.WeavingClassLoader, with one important distinction. In this case, we use our own ClassPreProcessorHelper which does not force the loading of AspectWerkz to the parent of the system classloader (boot class loader). Also, this class extends from KeelURLClassLoader and therefore does not do the "normal" get classes from parent class-loader (see KeelURLClassLoader for details).

Version:
$evision: 1.1 $ $Date: 2004/03/29 01:47:29 $
Author:
schatterjee Created on January 28, 2004

Nested Class Summary
 
Nested classes inherited from class java.lang.ClassLoader
 
Field Summary
 
Fields inherited from class java.net.URLClassLoader
 
Fields inherited from class java.security.SecureClassLoader
 
Fields inherited from class java.lang.ClassLoader
 
Constructor Summary
KeelWeavingClassLoader(java.net.URL[] urls)
           
KeelWeavingClassLoader(java.net.URL[] urls, java.lang.ClassLoader loader)
           
 
Method Summary
protected  java.lang.Class findClass(java.lang.String name)
           
 
Methods inherited from class org.keel.core.classloader.KeelURLClassLoader
getResource, isSystemResource, loadClass
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, 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

KeelWeavingClassLoader

public KeelWeavingClassLoader(java.net.URL[] urls,
                              java.lang.ClassLoader loader)
Parameters:
urls -
loader -

KeelWeavingClassLoader

public KeelWeavingClassLoader(java.net.URL[] urls)
Parameters:
urls -
Method Detail

findClass

protected java.lang.Class findClass(java.lang.String name)
                             throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.