public class DefaultClassReleaser extends Object implements ClassReleaser
Should permit on-the-fly garbage collection of the class, with any Groovy version from 1.7.5 to the version that was current when this version of Groovy was released (see Gradle dependency in the source for exact version).
|Modifier and Type||Method and Description|
gets the singleton instance of the default class releaser.
release class metadata when done using it.
public static ClassReleaser getInstance()
public void release(Class<?> clazz)
Allows to remove metadata associated by Groovy (or Java) with a class, which is often necessary to get on-the-fly garbage collection.