Class GroovyClassValueJava7<T>
java.lang.Object
java.lang.ClassValue<T>
org.codehaus.groovy.reflection.v7.GroovyClassValueJava7<T>
- Type Parameters:
T-
- All Implemented Interfaces:
GroovyClassValue<T>
GroovyClassValue implementation that simply delegates to Java 7's java.lang.ClassValue
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.codehaus.groovy.reflection.GroovyClassValue
GroovyClassValue.ComputeValue<T> -
Constructor Summary
ConstructorsConstructorDescriptionGroovyClassValueJava7(GroovyClassValue.ComputeValue<T> computeValue) Creates a class value that computes a missing entry withcomputeValue. -
Method Summary
Methods inherited from class java.lang.ClassValue
get, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codehaus.groovy.reflection.GroovyClassValue
get, pin, remove, unpin, valuesReclaimable
-
Constructor Details
-
GroovyClassValueJava7
Creates a class value that computes a missing entry withcomputeValue. The callback is stored and invoked fromcomputeValue(Class)for a class that has no cached entry. It is not called for this constructor.- Parameters:
computeValue- callback that produces the value for a class
-
-
Method Details
-
computeValue
- Specified by:
computeValuein classClassValue<T>
-