org.jboss.seam.deployment
Class GroovyHotDeploymentStrategy

java.lang.Object
  extended by org.jboss.seam.deployment.DeploymentStrategy
      extended by org.jboss.seam.deployment.HotDeploymentStrategy
          extended by org.jboss.seam.deployment.GroovyHotDeploymentStrategy

public class GroovyHotDeploymentStrategy
extends HotDeploymentStrategy

A deployment strategy for hot deploying Seam groovy components

Author:
Pete Muir

Field Summary
 
Fields inherited from class org.jboss.seam.deployment.HotDeploymentStrategy
DEFAULT_HOT_DEPLOYMENT_DIRECTORY_PATH, HANDLERS_KEY, NAME
 
Fields inherited from class org.jboss.seam.deployment.DeploymentStrategy
SCANNERS_KEY
 
Constructor Summary
GroovyHotDeploymentStrategy(ClassLoader classLoader, File hotDeployDirectory, javax.servlet.ServletContext servletContext, boolean enabled)
           
 
Method Summary
 ClassLoader getClassLoader()
          Get the classloader to use
 Set<ClassDescriptor> getScannedComponentClasses()
          Get all Components which the strategy has scanned and handled
 boolean isFromHotDeployClassLoader(Class componentClass)
          Return true if the component is from a hot deployment classloader
 
Methods inherited from class org.jboss.seam.deployment.HotDeploymentStrategy
available, createInstance, getAnnotatedClasses, getDeploymentHandlersKey, getHotDeploymentPaths, getServletContext, instance, isEnabled, isHotDeployClassLoaderEnabled, scan
 
Methods inherited from class org.jboss.seam.deployment.DeploymentStrategy
getDeploymentHandlers, getFiles, getScanner, getTimestamp, initScanner, postScan, setFiles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyHotDeploymentStrategy

public GroovyHotDeploymentStrategy(ClassLoader classLoader,
                                   File hotDeployDirectory,
                                   javax.servlet.ServletContext servletContext,
                                   boolean enabled)
Parameters:
classLoader - The parent classloader of the hot deployment classloader
hotDeployDirectory - The directory in which hot deployable java and groovy Seam components are placed
Method Detail

getClassLoader

public ClassLoader getClassLoader()
Description copied from class: DeploymentStrategy
Get the classloader to use

Overrides:
getClassLoader in class HotDeploymentStrategy

isFromHotDeployClassLoader

public boolean isFromHotDeployClassLoader(Class componentClass)
Description copied from class: HotDeploymentStrategy
Return true if the component is from a hot deployment classloader

Overrides:
isFromHotDeployClassLoader in class HotDeploymentStrategy

getScannedComponentClasses

public Set<ClassDescriptor> getScannedComponentClasses()
Description copied from class: HotDeploymentStrategy
Get all Components which the strategy has scanned and handled

Overrides:
getScannedComponentClasses in class HotDeploymentStrategy


Copyright © 2011 Seam Framework. All Rights Reserved.