| java.lang.Object org.apache.openejb.ClassLoaderUtil
ClassLoaderUtil | public class ClassLoaderUtil (Code) | | version: $Revision: 637617 $ $Date: 2008-03-16 10:42:30 -0700 $ |
clearClassLoaderCaches | public static void clearClassLoaderCaches()(Code) | | Cleans well known class loader leaks in VMs and libraries. There is a lot of bad code out there and this method
will clear up the know problems. This method should only be called when the class loader will no longer be used.
It this method is called two often it can have a serious impact on preformance.
|
clearSunJarFileFactoryCache | public static void clearSunJarFileFactoryCache(String jarLocation)(Code) | | |
clearSunSoftCache | public static void clearSunSoftCache(Class clazz, String fieldName)(Code) | | Clears the caches maintained by the SunVM object stream implementation. This method uses reflection and
setAccessable to obtain access to the Sun cache. The cache is locked with a synchronize monitor and cleared.
This method completely clears the class loader cache which will impact preformance of object serialization.
Parameters: clazz - the name of the class containing the cache field Parameters: fieldName - the name of the cache field |
destroyClassLoader | public static void destroyClassLoader(ClassLoader classLoader)(Code) | | |
destroyClassLoader | public static void destroyClassLoader(String appId)(Code) | | |
|
|