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

org.objenesis.strategy.InstantiatorStrategy Maven / Gradle / Ivy

There is a newer version: 2.0.2-beta
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy