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