com.rits.cloning.ObjenesisInstantiationStrategy Maven / Gradle / Ivy
package com.rits.cloning;
import org.objenesis.Objenesis;
import org.objenesis.ObjenesisStd;
/**
* @author kostantinos.kougios
*
* 17 Jul 2012
*/
public class ObjenesisInstantiationStrategy implements IInstantiationStrategy
{
private final Objenesis objenesis = new ObjenesisStd();
public T newInstance(Class c)
{
return objenesis.newInstance(c);
}
private static ObjenesisInstantiationStrategy instance = new ObjenesisInstantiationStrategy();
public static ObjenesisInstantiationStrategy getInstance()
{
return instance;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy