1 package net.sf.josceleton.commons.reflect; 2 3 /** 4 * Comes in handy for (unit) testing if you want to mock out instantiation of third party classes. 5 * 6 * This type especially solves the problem of third party classes' constructor executing some logic. 7 * 8 * @since 0.1 9 */ 10 public interface DynamicInstantiator { 11 12 /** 13 * @throws DynamicInstantiationException 14 * @since 0.1 15 */ 16 <T> T create(ClassAdapter<T> clazz, Object... arguments); 17 18 }