Skip to content

Register By Package

Michael Guymon edited this page Nov 20, 2013 · 3 revisions

Instead of specifying each @Blueprint class indiviually, they can be scanned for using the registerBlueprintsByPackage method:

ModelFactory modelFactory = new ModelFactory();
modelFactory.registerBlueprintsByPackage( "com.tobedevoured.modelcitizen.test.models" );
Clone this wiki locally