
org.codehaus.groovy.reflection.v7.GroovyClassValueJava7 Maven / Gradle / Ivy
package org.codehaus.groovy.reflection.v7;
import org.codehaus.groovy.reflection.GroovyClassValue;
import org.codehaus.groovy.reflection.GroovyClassValue.ComputeValue;
/** GroovyClassValue implementaion that simply delegates to Java 7's java.lang.ClassValue
* @see java.lang.ClassValue
*
* @param
*/
public class GroovyClassValueJava7 extends ClassValue implements GroovyClassValue {
private final ComputeValue computeValue;
public GroovyClassValueJava7(ComputeValue computeValue){
this.computeValue = computeValue;
}
@Override
protected T computeValue(Class> type) {
return computeValue.computeValue(type);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy