net.sf.javagimmicks.util.ReflectionSupplier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gimmicks Show documentation
Show all versions of gimmicks Show documentation
Utility classes, APIs and tools for Java
package net.sf.javagimmicks.util;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Modifier;
/**
* An implementation of {@link Supplier} that creates instances by calling a
* constructor on a given {@link Class} via reflection
*
* @param
* the type of the instances to create
*/
public class ReflectionSupplier implements Supplier
{
protected final Constructor extends E> _constructor;
protected final Supplier
© 2015 - 2025 Weber Informatics LLC | Privacy Policy