List of usage examples for java.beans Introspector flushCaches
public static void flushCaches()
From source file:org.rhq.enterprise.agent.promptcmd.GCPromptCommand.java
private void freeMemory(PrintWriter out) { final MemoryMXBean memoryMxBean = ManagementFactory.getMemoryMXBean(); printGlobalMemoryUsage(out, memoryMxBean); // free up some global static caches Introspector.flushCaches(); LogFactory.releaseAll();//from w ww . ja va 2 s . co m // invoke the garbage collector out.println(MSG.getMsg(AgentI18NResourceKeys.GC_INVOKE)); memoryMxBean.gc(); printGlobalMemoryUsage(out, memoryMxBean); return; }
From source file:org.springframework.boot.devtools.restart.Restarter.java
private void cleanupCaches() throws Exception { Introspector.flushCaches(); cleanupKnownCaches(); }