Top Fields Constructors Methods
org.codehaus.groovy.reflection

pack-priv Class GroovyClassValueFactory

extends Object
Class Inheritance
Imports
org.apache.groovy.util.SystemUtil, org.codehaus.groovy.reflection.GroovyClassValue.ComputeValue, org.codehaus.groovy.reflection.v7.GroovyClassValueJava7

Field Summary

Modifier and TypeField and Description
private static final boolean
USE_CLASSVALUE

This flag is introduced as a (hopefully) temporary workaround for a JVM bug, that is to say that using ClassValue prevents the classes and classloaders from being unloaded.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public static <T> GroovyClassValue<T>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

USE_CLASSVALUEback to summary
private static final boolean USE_CLASSVALUE

This flag is introduced as a (hopefully) temporary workaround for a JVM bug, that is to say that using ClassValue prevents the classes and classloaders from being unloaded. See https://bugs.openjdk.java.net/browse/JDK-8136353 This issue does not exist on IBM Java (J9) so use ClassValue by default on that JVM.

Constructor Detail

GroovyClassValueFactoryback to summary
pack-priv GroovyClassValueFactory()

Method Detail

createGroovyClassValueback to summary
public static <T> GroovyClassValue<T> createGroovyClassValue(GroovyClassValue.ComputeValue<T> computeValue)