@Override public void actionPerformed(ActionEvent ev) { java.beans.Introspector.flushCaches(); } };
@Override public void contextDestroyed(ServletContextEvent event) { CachedIntrospectionResults.clearClassLoader(Thread.currentThread().getContextClassLoader()); Introspector.flushCaches(); }
@Override public void contextDestroyed(ServletContextEvent event) { CachedIntrospectionResults.clearClassLoader(Thread.currentThread().getContextClassLoader()); Introspector.flushCaches(); }
/** * Clear any cached property descriptors information for all classes * loaded by any class loaders. This is useful in cases where class * loaders are thrown away to implement class reloading. */ public void clearDescriptors() { descriptorsCache.clear(); mappedDescriptorsCache.clear(); Introspector.flushCaches(); }
/** * Clear any cached property descriptors information for all classes * loaded by any class loaders. This is useful in cases where class * loaders are thrown away to implement class reloading. */ public void clearDescriptors() { descriptorsCache.clear(); mappedDescriptorsCache.clear(); Introspector.flushCaches(); }
ctx = sce.getServletContext(); Introspector.flushCaches();
Introspector.flushCaches(); LOGGER.info("Cleaned up javabean caches");
@Override public void actionPerformed(ActionEvent ev) { java.beans.Introspector.flushCaches(); } };
public void contextDestroyed(ServletContextEvent sce) { // To fix the known memory leaks during re-deploy ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); LogFactory.release(contextClassLoader); java.beans.Introspector.flushCaches(); ... }
private void cleanupCaches() throws Exception { Introspector.flushCaches(); cleanupKnownCaches(); }
/** * Uninstalls an artifact from the Mule container installation. * * It will remove the artifact folder and the anchor file related * * @param artifactName name of the artifact to be uninstalled. */ void uninstallArtifact(final String artifactName) { try { final File artifactDir = new File(artifactParentDir, artifactName); deleteDirectory(artifactDir); // remove a marker, harmless, but a tidy artifact dir is always better :) File marker = getArtifactAnchorFile(artifactName); marker.delete(); Introspector.flushCaches(); } catch (Throwable t) { if (t instanceof DeploymentException) { throw ((DeploymentException) t); } final String msg = format("Failed to undeployArtifact artifact [%s]", artifactName); throw new DeploymentException(createStaticMessage(msg), t); } }
@Override public void cleanUp(ClassLoaderLeakPreventor preventor) { java.beans.Introspector.flushCaches(); // Clear cache of strong references } }
/** Calls the cleanup() method on the log to release resources held by commons logging. */ public void destroy() { this.servletContext.removeAttribute(StripesFilter.class.getName()); Log.cleanup(); Introspector.flushCaches(); // Not 100% sure this is necessary, but it doesn't hurt StripesFilter.configurations.clear(); } }
public void resetEventDidOccur() { try { _lock.lock(); _cache.clear(); _objectCache.clear(); Introspector.flushCaches(); } finally { _lock.unlock(); } }
/** * Clear any cached property descriptors information for all classes * loaded by any class loaders. This is useful in cases where class * loaders are thrown away to implement class reloading. */ public void clearDescriptors() { descriptorsCache.clear(); mappedDescriptorsCache.clear(); Introspector.flushCaches(); }
/** * Clear any cached property descriptors information for all classes * loaded by any class loaders. This is useful in cases where class * loaders are thrown away to implement class reloading. */ public void clearDescriptors() { descriptorsCache.clear(); mappedDescriptorsCache.clear(); Introspector.flushCaches(); }
/** * Clear any cached property descriptors information for all classes * loaded by any class loaders. This is useful in cases where class * loaders are thrown away to implement class reloading. */ public void clearDescriptors() { descriptorsCache.clear(); mappedDescriptorsCache.clear(); Introspector.flushCaches(); }
/** * Clear any cached property descriptors information for all classes * loaded by any class loaders. This is useful in cases where class * loaders are thrown away to implement class reloading. */ public void clearDescriptors() { descriptorsCache.clear(); mappedDescriptorsCache.clear(); Introspector.flushCaches(); }
public void registryDidShutdown() { try { _contextPool.clear(); _contextPool.close(); OgnlRuntime.clearCache(); Introspector.flushCaches(); } catch (Exception et) { // ignore } }
/** * 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. */ public static void clearClassLoaderCaches() { clearSunSoftCache(ObjectInputStream.class, "subclassAudits"); clearSunSoftCache(ObjectOutputStream.class, "subclassAudits"); clearSunSoftCache(ObjectStreamClass.class, "localDescs"); clearSunSoftCache(ObjectStreamClass.class, "reflectors"); Introspector.flushCaches(); }