import com.google.common.base.Joiner;
import com.google.common.base.Splitter;
import com.google.common.collect.Iterables;
-import java.lang.reflect.Constructor;
-import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.List;
return callWithClassLoader(cls, function);
}
- // FIXME: 3.0.0: Remove or improve this to be an explicit cast to a receiver <T>?
- public static Object construct(final Constructor<?> constructor, final List<Object> objects)
- throws InstantiationException, IllegalAccessException, InvocationTargetException {
- final Object[] initargs = objects.toArray();
- return constructor.newInstance(initargs);
- }
-
/**
* Loads class using this supplied classloader.
*