Examples of HotDeploymentStrategy


Examples of org.jboss.seam.deployment.HotDeploymentStrategy

         return HotDeploymentStrategy.createInstance("org.jboss.seam.deployment.GroovyHotDeploymentStrategy", classLoader, hotDeployDirectory, hotDeployEnabled);
      }
      else
      {
         log.debug("Using Java hot deploy");
         return new HotDeploymentStrategy(classLoader, hotDeployDirectory, hotDeployEnabled);
      }
   }
View Full Code Here

Examples of org.jboss.seam.deployment.HotDeploymentStrategy

   private ClassLoader hotDeployClassLoader;
  
   @Observer(value= { "org.jboss.seam.postInitialization","org.jboss.seam.postReInitialization"} )
   public void postReInitialization()
   {
      HotDeploymentStrategy strategy = (HotDeploymentStrategy)Contexts.getEventContext().get(HotDeploymentStrategy.NAME);
      if (strategy != null)
      {
         hotDeployClassLoader = strategy.getClassLoader();
      }
      else
      {
         hotDeployClassLoader = null;
      }
View Full Code Here

Examples of org.jboss.seam.deployment.HotDeploymentStrategy

         return HotDeploymentStrategy.createInstance("org.jboss.seam.deployment.GroovyHotDeploymentStrategy", classLoader, hotDeployDirectory, isDebugEnabled());
      }
      else
      {
         log.debug("Using Java hot deploy");
         return new HotDeploymentStrategy(classLoader, hotDeployDirectory, isDebugEnabled());
      }
   }
View Full Code Here

Examples of org.jboss.seam.deployment.HotDeploymentStrategy

         return HotDeploymentStrategy.createInstance("org.jboss.seam.deployment.GroovyHotDeploymentStrategy", classLoader, hotDeployDirectory, servletContext, hotDeployEnabled);
      }
      else
      {
         log.debug("Using Java hot deploy");
         return new HotDeploymentStrategy(classLoader, hotDeployDirectory, servletContext, hotDeployEnabled);
      }
   }
View Full Code Here

Examples of org.jboss.seam.deployment.HotDeploymentStrategy

    * Upon initialization and re-initialization, lookup the hot deployment strategy and grab its classloader, if it exists.
    */
   @Observer(value= { "org.jboss.seam.postInitialization","org.jboss.seam.postReInitialization"} )
   public void postReInitialization()
   {
      HotDeploymentStrategy strategy = (HotDeploymentStrategy)Contexts.getEventContext().get(HotDeploymentStrategy.NAME);
      if (strategy != null)
      {
         hotDeployClassLoader = strategy.getClassLoader();
      }
      else
      {
         hotDeployClassLoader = null;
      }
View Full Code Here

Examples of org.jboss.seam.deployment.HotDeploymentStrategy

    * Upon initialization and re-initialization, lookup the hot deployment strategy and grab its classloader, if it exists.
    */
   @Observer(value= { "org.jboss.seam.postInitialization","org.jboss.seam.postReInitialization"} )
   public void postReInitialization()
   {
      HotDeploymentStrategy strategy = (HotDeploymentStrategy)Contexts.getEventContext().get(HotDeploymentStrategy.NAME);
      if (strategy != null)
      {
         hotDeployClassLoader = strategy.getClassLoader();
      }
      else
      {
         hotDeployClassLoader = null;
      }
View Full Code Here

Examples of org.jboss.seam.deployment.HotDeploymentStrategy

         return HotDeploymentStrategy.createInstance("org.jboss.seam.deployment.GroovyHotDeploymentStrategy", classLoader, hotDeployDirectory, servletContext, hotDeployEnabled);
      }
      else
      {
         log.debug("Using Java hot deploy");
         return new HotDeploymentStrategy(classLoader, hotDeployDirectory, servletContext, hotDeployEnabled);
      }
   }
View Full Code Here

Examples of org.jboss.seam.deployment.HotDeploymentStrategy

         return HotDeploymentStrategy.createInstance("org.jboss.seam.deployment.GroovyHotDeploymentStrategy", classLoader, hotDeployDirectory, servletContext, hotDeployEnabled);
      }
      else
      {
         log.debug("Using Java hot deploy");
         return new HotDeploymentStrategy(classLoader, hotDeployDirectory, servletContext, hotDeployEnabled);
      }
   }
View Full Code Here

Examples of org.jboss.seam.deployment.HotDeploymentStrategy

    public void registerHotDeployedClasses() {

        Collection<Component> seamComponents = findSeamComponents();

        // Also scan for hot deployed components
        HotDeploymentStrategy hotDeployment = HotDeploymentStrategy.instance();
        if (hotDeployment != null && hotDeployment.available()) {
            log.info("scanning for hot deployable JAX-RS components");
            AnnotationDeploymentHandler hotDeploymentHandler =
                    (AnnotationDeploymentHandler) hotDeployment
                            .getDeploymentHandlers().get(
                                    AnnotationDeploymentHandler.NAME);
            registerProviders(seamComponents,
                    findProviders(hotDeploymentHandler));
            registerResources(seamComponents,
View Full Code Here

Examples of org.jboss.seam.deployment.HotDeploymentStrategy

                register(clazz);
            }
        }

        // also register hot deployed handlers
        HotDeploymentStrategy hotDeploymentStrategy =
                HotDeploymentStrategy.instance();
        if (hotDeploymentStrategy != null && hotDeploymentStrategy.available()) {
            Set<Class<?>> hotAnnotatedClasses =
                    hotDeploymentStrategy.getAnnotatedClasses().get(
                            ActionHandlerFor.class.getName());
            if (hotAnnotatedClasses != null) {
                for (Class clazz : hotAnnotatedClasses) {
                    register(clazz);
                }
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.