org.objenesis.strategy.InstantiatorStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockito-all Show documentation
Show all versions of mockito-all Show documentation
Mock objects library for java
package org.objenesis.strategy;
import org.objenesis.instantiator.ObjectInstantiator;
/**
* Defines a strategy to determine the best instantiator for a class.
*/
public interface InstantiatorStrategy {
/**
* Create a dedicated instantiator for the given class
*
* @param type Class that will be instantiate
* @return Dedicated instantiator
*/
ObjectInstantiator newInstantiatorOf(Class type);
}