Package org.impalaframework.module.spi

Examples of org.impalaframework.module.spi.FrameworkLockHolder


    @Override
    protected WebApplicationContext initWebApplicationContext() throws BeansException {
       
        ModuleManagementFacade moduleManagementFacade = ImpalaServletUtils.getModuleManagementFacade(getServletContext());
        FrameworkLockHolder frameworkLockHolder = moduleManagementFacade.getFrameworkLockHolder();
       
        try {
            frameworkLockHolder.writeLock();
            WebApplicationContext wac = createWebApplicationContext();
            HttpServlet delegateServlet = this;
        
            this.invoker = getInvoker(wac, delegateServlet, frameworkLockHolder, this.setThreadContextClassLoader);
           
            //FIXME this probably shouldn't automatically be being called. How to stop it from being called inappropriately
            //However, it must be called
            onRefresh(wac);
           
            ImpalaServletUtils.publishWebApplicationContext(wac, this);
            return wac;
        }
        finally {
            frameworkLockHolder.writeUnlock();
        }
    }
View Full Code Here


        };
  }
 
    public void testExecute() {
       
        FrameworkLockHolder frameworkLockHolder = createMock(FrameworkLockHolder.class);
        operation.setFrameworkLockHolder(frameworkLockHolder);
       
        frameworkLockHolder.writeLock();
        frameworkLockHolder.writeUnlock();
       
        replay(frameworkLockHolder);
       
        ModuleStateHolder moduleStateHolder = createMock(ModuleStateHolder.class);
        Application application = TestApplicationManager.newApplicationManager(null, moduleStateHolder, null).getCurrentApplication();
View Full Code Here

    @Override
    protected WebApplicationContext initWebApplicationContext() throws BeansException {
       
        ModuleManagementFacade moduleManagementFacade = ImpalaServletUtils.getModuleManagementFacade(getServletContext());
        FrameworkLockHolder frameworkLockHolder = moduleManagementFacade.getFrameworkLockHolder();
       
        try {
            frameworkLockHolder.writeLock();
            WebApplicationContext wac = createWebApplicationContext();
            HttpServlet delegateServlet = this;
        
            this.invoker = getInvoker(wac, delegateServlet, frameworkLockHolder, this.setThreadContextClassLoader);
           
            //FIXME this probably shouldn't automatically be being called. How to stop it from being called inappropriately
            //However, it must be called
            onRefresh(wac);
           
            ImpalaServletUtils.publishWebApplicationContext(wac, this);
            return wac;
        }
        finally {
            frameworkLockHolder.writeUnlock();
        }
    }
View Full Code Here

    @Override
    protected WebApplicationContext initWebApplicationContext() throws BeansException {
       
        ModuleManagementFacade moduleManagementFacade = ImpalaServletUtils.getModuleManagementFacade(getServletContext());
        FrameworkLockHolder frameworkLockHolder = moduleManagementFacade.getFrameworkLockHolder();
       
        try {
            frameworkLockHolder.writeLock();
            WebApplicationContext wac = createWebApplicationContext();
            HttpServlet delegateServlet = this;
        
            this.invoker = getInvoker(wac, delegateServlet, frameworkLockHolder, this.setThreadContextClassLoader);
           
            //FIXME this probably shouldn't automatically be being called. How to stop it from being called inappropriately
            //However, it must be called
            onRefresh(wac);
           
            ImpalaServletUtils.publishWebApplicationContext(wac, this);
            return wac;
        }
        finally {
            frameworkLockHolder.writeUnlock();
        }
    }
View Full Code Here

TOP

Related Classes of org.impalaframework.module.spi.FrameworkLockHolder

Copyright © 2018 www.massapicom. 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.