@ Constructed public void constructed ( ) { Context context = factory . enterContext ( ) ; try { scope = new ImporterTopLevel ( context ) ; } finally { Context . exit ( ) ; } Container container = Jaguar . component ( Container . class ) ; Object store = container . component ( container . contexts ( ) . get ( Application . class ) ) . store ( ) ; if ( store instanceof ServletContext ) { org . eiichiro . bootleg . Configuration configuration = new DefaultConfiguration ( ) ; configuration . init ( ( ServletContext ) store ) ; this . configuration = configuration ; } }
Sets up Mozilla Rhino s script scope . If the application is running on a Servlet container this method instantiates and initializes the Bootleg s default configuration internally .