org.jboss.seam.deployment
public class HotDeploymentStrategy extends DeploymentStrategy
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_HOT_DEPLOYMENT_DIRECTORY_PATH
The default path at which hot deployable Seam components are placed
|
static String |
HANDLERS_KEY
The key under which to list extra deployment handlers.
|
static String |
NAME
The contextual variable name this deployment strategy is made available at
during Seam startup.
|
SCANNERS_KEY
Constructor and Description |
---|
HotDeploymentStrategy(ClassLoader classLoader,
File hotDeployDirectory,
javax.servlet.ServletContext servletContext,
boolean enabled) |
Modifier and Type | Method and Description |
---|---|
boolean |
available()
It is both enabled and the classpath was detected.
|
static HotDeploymentStrategy |
createInstance(String className,
ClassLoader classLoader,
File hotDeployDirectory,
javax.servlet.ServletContext servletContext,
boolean enabled)
Dynamically instantiate a
HotDeploymentStrategy
Needed to prevent dependency on optional librarires |
Map<String,Set<Class<?>>> |
getAnnotatedClasses() |
ClassLoader |
getClassLoader()
Get the classloader to use
|
protected String |
getDeploymentHandlersKey() |
File[] |
getHotDeploymentPaths()
Get all hot deployable paths
|
Set<ClassDescriptor> |
getScannedComponentClasses()
Get all Components which the strategy has scanned and handled
|
javax.servlet.ServletContext |
getServletContext()
Get the ServletContext to use
|
static HotDeploymentStrategy |
instance() |
boolean |
isEnabled() |
boolean |
isFromHotDeployClassLoader(Class componentClass)
Return true if the component is from a hot deployment classloader
|
boolean |
isHotDeployClassLoaderEnabled() |
void |
scan()
Do the scan for resources
Should only be called by Seam
|
getDeploymentHandlers, getFiles, getScanner, getTimestamp, initScanner, postScan, setFiles
public static final String DEFAULT_HOT_DEPLOYMENT_DIRECTORY_PATH
public static final String NAME
public static final String HANDLERS_KEY
public HotDeploymentStrategy(ClassLoader classLoader, File hotDeployDirectory, javax.servlet.ServletContext servletContext, boolean enabled)
classLoader
- The parent classloader of the hot deployment classloaderhotDeployDirectory
- The directory in which hot deployable Seam
components are placedpublic boolean available()
public boolean isEnabled()
public boolean isHotDeployClassLoaderEnabled()
protected String getDeploymentHandlersKey()
getDeploymentHandlersKey
in class DeploymentStrategy
public File[] getHotDeploymentPaths()
public boolean isFromHotDeployClassLoader(Class componentClass)
public static HotDeploymentStrategy createInstance(String className, ClassLoader classLoader, File hotDeployDirectory, javax.servlet.ServletContext servletContext, boolean enabled)
HotDeploymentStrategy
Needed to prevent dependency on optional librariresclassName
- The strategy to useclassLoader
- The classloader to use with this strategyhotDeployDirectory
- The directory which contains hot deployable
Seam componentspublic ClassLoader getClassLoader()
DeploymentStrategy
getClassLoader
in class DeploymentStrategy
public Set<ClassDescriptor> getScannedComponentClasses()
public void scan()
DeploymentStrategy
scan
in class DeploymentStrategy
public static HotDeploymentStrategy instance()
public javax.servlet.ServletContext getServletContext()
DeploymentStrategy
getServletContext
in class DeploymentStrategy
Copyright © 2015 Seam Framework. All Rights Reserved.