org.nuiton.wikitty.publication.externalize
Class WikittyPublicationClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by org.nuiton.wikitty.publication.externalize.WikittyPublicationClassLoader

public class WikittyPublicationClassLoader
extends URLClassLoader

A simple classloader extension to allow adding java class with bytecode

Author:
mfortun

Constructor Summary
WikittyPublicationClassLoader(URL[] urls)
           
 
Method Summary
 Class<?> addClass(String name, byte[] b)
          use to add a class inside the class path from bytecode
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, 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

WikittyPublicationClassLoader

public WikittyPublicationClassLoader(URL[] urls)
Method Detail

addClass

public Class<?> addClass(String name,
                         byte[] b)
use to add a class inside the class path from bytecode

Parameters:
name - the name of the class
b - the bytecode of the class
Returns:
the class loaded


Copyright © 2010-2011 CodeLutin. All Rights Reserved.