Example usage for java.beans Introspector flushCaches

List of usage examples for java.beans Introspector flushCaches

Introduction

In this page you can find the example usage for java.beans Introspector flushCaches.

Prototype

public static void flushCaches() 

Source Link

Document

Flush all of the Introspector's internal caches.

Usage

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();
}