Class GoodCitizenClassLoader

  extended by java.lang.ClassLoader
      extended by
          extended by
              extended by org.mule.module.launcher.GoodCitizenClassLoader
Direct Known Subclasses:
FineGrainedControlClassLoader, MuleSharedDomainClassLoader

public class GoodCitizenClassLoader
extends URLClassLoader

Fixes major classloader woes by:

  1. Providing a close() method to release any connections to resources.
  2. Disabling caching of jar resources fix e.g. java.util.ResourceBundle 'tagging' the app and preventing it from being undeployed correctly (no leaving locked jars behind).

Nested Class Summary
protected static class GoodCitizenClassLoader.NonCachingURLStreamHandlerFactory
Constructor Summary
GoodCitizenClassLoader(URL[] urls, ClassLoader parent)
Method Summary
 void close()
          A workaround for
Methods inherited from class
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
Methods inherited from class
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


public GoodCitizenClassLoader(URL[] urls,
                              ClassLoader parent)
Method Detail


public void close()
A workaround for

Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.