private JawrApplicationConfigManager initApplicationConfigManager ( ) { JawrApplicationConfigManager appConfigMgr = ( JawrApplicationConfigManager ) servletContext . getAttribute ( JawrConstant . JAWR_APPLICATION_CONFIG_MANAGER ) ; if ( appConfigMgr == null ) { appConfigMgr = new JawrApplicationConfigManager ( ) ; servletContext . setAttribute ( JawrConstant . JAWR_APPLICATION_CONFIG_MANAGER , appConfigMgr ) ; } // Create the config manager for the current Request Handler JawrConfigManager configMgr = new JawrConfigManager ( this , jawrConfig . getConfigProperties ( ) ) ; // Initialize the jawrApplicationConfigManager if ( resourceType . equals ( JawrConstant . JS_TYPE ) ) { appConfigMgr . setJsMBean ( configMgr ) ; } else if ( resourceType . equals ( JawrConstant . CSS_TYPE ) ) { appConfigMgr . setCssMBean ( configMgr ) ; } else { appConfigMgr . setBinaryMBean ( configMgr ) ; } return appConfigMgr ; }
Initialize the application config manager