eXtreme Development

Java - como passar parametro pro construtor usando reflection

Constructor<?> serviceConstructor = Class.forName(serviceClassPath).getConstructor(ServiceConfig.class);
Service service = (Service) serviceConstructor.newInstance(config);

Referencia

http://stackoverflow.com/questions/5658182/intializing-a-class-with-class-forname-and-which-have-a-constructor-which-take



SourceForge BootStrap