Examples of ModuleManagementFacade


Examples of org.impalaframework.facade.ModuleManagementFacade

    public void moduleContentsModified(ModuleChangeEvent event) {
        Set<String> modified = getModifiedModules(event);

        if (!modified.isEmpty()) {
           
            ModuleManagementFacade factory = WebServletUtils.getModuleManagementFacade(servletContext);               
            ApplicationManager applicationManager = factory.getApplicationManager();
            Application application = applicationManager.getCurrentApplication();

            for (String moduleName : modified) {

                logger.info("Processing modified module " + moduleName);

                ModuleOperation operation = factory.getModuleOperationRegistry().getOperation(ModuleOperationConstants.ReloadNamedModuleOperation);
               
                ModuleOperationInput moduleOperationInput = new ModuleOperationInput(null, null, moduleName);
                operation.execute(application, moduleOperationInput);
            }
        }
View Full Code Here

Examples of org.impalaframework.module.bootstrap.ModuleManagementFacade

  HttpSession wrapSession(HttpSession session) {
    if (session == null) {
      return null;
    }
    ModuleManagementFacade moduleManagementFacade = ImpalaServletUtils.getModuleManagementFactory(servletContext);
    if (moduleManagementFacade != null) {
      ConfigurableApplicationContext currentModuleContext = moduleManagementFacade.getModuleStateHolder().getModule(moduleName);
     
      if (currentModuleContext != null) {
        return new ModuleAwareWrapperHttpSession(session, currentModuleContext.getClassLoader());
      } else {
        logger.warn("No module application context associated with module: " + moduleName + ". Using unwrapped session");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.