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

org.jboss.weld.util.reflection.ClassLoaderFunction Maven / Gradle / Ivy

There is a newer version: 3.0.0.Alpha1
Show newest version
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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy