01: package org.drools.objenesis.strategy;
02:
03: import org.drools.objenesis.instantiator.ObjectInstantiator;
04:
05: /**
06: * Defines a strategy to determine the best instantiator for a class.
07: */
08: public interface InstantiatorStrategy {
09:
10: /**
11: * Create a dedicated instantiator for the given class
12: *
13: * @param type Class that will be instantiate
14: * @return Dedicated instantiator
15: */
16: ObjectInstantiator newInstantiatorOf(Class type);
17: }
|