Examples of WarRootDeploymentStrategy


Examples of org.jboss.seam.deployment.WarRootDeploymentStrategy

      init.checkDefaultInterceptors();
      init.setTimestamp(System.currentTimeMillis());
      addSpecialComponents(init);
     
      // Add the war root deployment
      warRootDeploymentStrategy = new WarRootDeploymentStrategy(
            Thread.currentThread().getContextClassLoader(), warRoot, new File[] { warClassesDirectory, warLibDirectory, hotDeployDirectory });
      Contexts.getEventContext().set(WarRootDeploymentStrategy.NAME, warRootDeploymentStrategy);
      warRootDeploymentStrategy.scan();
      init.setWarTimestamp(System.currentTimeMillis());
     
View Full Code Here

Examples of org.jboss.seam.deployment.WarRootDeploymentStrategy

               // the second scan checks annotations (the slow part) which might happen to exclude the most recent file
               init.setTimestamp(System.currentTimeMillis());
               ServletLifecycle.endReinitialization();
            }
              
            final WarRootDeploymentStrategy warRootDeploymentStrategy = new WarRootDeploymentStrategy(Thread.currentThread().getContextClassLoader(), warRoot, new File[] { warClassesDirectory, warLibDirectory, hotDeployDirectory });
            changed = new TimestampCheckForwardingDeploymentStrategy()
            {
               @Override
               protected DeploymentStrategy delegate()
               {
                  return warRootDeploymentStrategy;
               }
              
            }.changedSince(init.getWarTimestamp());
            if (changed)
            {
               warRootDeploymentStrategy.scan();
               if (warRootDeploymentStrategy.getTimestamp() > init.getWarTimestamp())
               {
                  log.debug("redeploying page descriptors...");
                  Pages pages = (Pages) ServletLifecycle.getServletContext().getAttribute(Seam.getComponentName(Pages.class));
                  if (pages != null) {
                     // application context is needed for creating expressions
                     Lifecycle.setupApplication();
                     pages.initialize(warRootDeploymentStrategy.getDotPageDotXmlFileNames());
                     Lifecycle.cleanupApplication();
                  }
                  ServletLifecycle.getServletContext().removeAttribute(Seam.getComponentName(Exceptions.class));
                  init.setWarTimestamp(warRootDeploymentStrategy.getTimestamp());
                  log.debug ("done redeploying page descriptors");
               }
            }
         }
         finally
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.