net.sf.josceleton.commons.reflect
Interface DynamicInstantiator


public interface DynamicInstantiator

Comes in handy for (unit) testing if you want to mock out instantiation of third party classes. This type especially solves the problem of third party classes' constructor executing some logic.

Since:
0.1

Method Summary
<T> T
create(ClassAdapter<T> clazz, Object... arguments)
           
 

Method Detail

create

<T> T create(ClassAdapter<T> clazz,
             Object... arguments)
Throws:
DynamicInstantiationException
Since:
0.1


Copyright © 2011 Josceleton. All Rights Reserved.