|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.ClassLoader
|
+--stomp.wrapper.DelegateClassLoader
responsible for creating classes at runtime which satisfy certain contracts. The new class must extend a given runtime input class ( like LinkedList ), implement an expected interface ( like CollectionDelegate ) and override all the input classes methods, attempting to pass only delegate type objects into the overriden list, and return only proxy objects from the list.
| Constructor Summary | |
DelegateClassLoader()
|
|
| Method Summary | |
static java.lang.Class |
getDelegateClass(java.lang.Class delegate)
if parentClass is a CollectionDelegate, returns parentClass. |
static void |
main(java.lang.String[] args)
creates a delegate class for the given input class and writes it out to a file. |
| Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, 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 |
public DelegateClassLoader()
| Method Detail |
public static java.lang.Class getDelegateClass(java.lang.Class delegate)
public static void main(java.lang.String[] args)
throws java.lang.ClassNotFoundException,
java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||