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 |
---|---|
static ClassReleaser |
getInstance()
gets the singleton instance of the default class releaser.
|
void |
release(Class<?> clazz)
release class metadata when done using it.
|
public static ClassReleaser getInstance()
public void release(Class<?> clazz)
ClassReleaser
Allows to remove metadata associated by Groovy (or Java) with a class, which is often necessary to get on-the-fly garbage collection.
release
in interface ClassReleaser
clazz
- The class to release.