All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codehaus.groovy.reflection.v7.GroovyClassValueJava7 Maven / Gradle / Ivy

There is a newer version: 3.0.23
Show newest version
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