public static ApplicationContext createAppContext ( Page page ) { XmlWebApplicationContext appContext = new FrameworkAppContext ( ) ; new AppContextInitializer ( page ) . initialize ( appContext ) ; appContext . refresh ( ) ; return appContext ; }
Creates an application context as a child of the root application context and associates it with the specified page . In this way any objects managed by the root application context are available to the framework context .