/** * Release all internal references to previously created service * instances associated with the current thread context class loader. * The <code>release()</code> method is called for service instances that * implement the <code>Service</code> interface. * * This is useful in environments like servlet containers, * which implement application reloading by throwing away a ClassLoader. * Dangling references to objects in that class loader would prevent * garbage collection. */ public static synchronized void release() { EnvironmentCache.release(); }