org.jboss.weld.util.reflection.ClassLoaderFunction Maven / Gradle / Ivy
package org.jboss.weld.util.reflection;
import com.google.common.base.Function;
import org.jboss.weld.resources.spi.ResourceLoader;
public class ClassLoaderFunction implements Function> {
private final ResourceLoader resourceLoader;
public ClassLoaderFunction(ResourceLoader resourceLoader) {
this.resourceLoader = resourceLoader;
}
public Class> apply(String from) {
return resourceLoader.classForName(from);
}
}