public static Engine create ( final Props props , final Map < String , Object > parameters ) { final Petite petite = new Petite ( ) ; petite . config ( props , parameters ) ; petite . initComponents ( ) ; final Engine engine = petite . get ( Engine . class ) ; engine . getLogger ( ) . info ( "Loaded props: {}" , props . getModulesString ( ) ) ; try { engine . executeInits ( ) ; } catch ( ResourceNotFoundException ex ) { throw new IllegalConfigException ( "engine.inits" , ex ) ; } return engine ; }
Create a Engine with given baseProps and extra - parameters .