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

org.sfm.reflect.StaticConstructorInstantiator Maven / Gradle / Ivy

package org.sfm.reflect;

import java.lang.reflect.Constructor;

public final class StaticConstructorInstantiator implements Instantiator {
	
	private final Constructor constructor;
	private final Object[] args;
	
	public StaticConstructorInstantiator(final Constructor constructor, final Object[] args) {
		this.constructor = constructor;
		this.args = args;
	}

	@Override
	public T newInstance(S s) throws Exception {
		return constructor.newInstance(args);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy