|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.seam.deployment.DeploymentStrategy
org.jboss.seam.deployment.HotDeploymentStrategy
public class HotDeploymentStrategy
A deployment strategy for hot deployable Java Seam components
Field Summary | |
---|---|
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. |
Fields inherited from class org.jboss.seam.deployment.DeploymentStrategy |
---|
SCANNERS_KEY |
Constructor Summary | |
---|---|
HotDeploymentStrategy(ClassLoader classLoader,
File hotDeployDirectory,
boolean enabled)
|
Method Summary | |
---|---|
boolean |
available()
It is both enabled and the classpath was detected. |
static HotDeploymentStrategy |
createInstance(String className,
ClassLoader classLoader,
File hotDeployDirectory,
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 |
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 |
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 |
Field Detail |
---|
public static final String DEFAULT_HOT_DEPLOYMENT_DIRECTORY_PATH
public static final String NAME
public static final String HANDLERS_KEY
Constructor Detail |
---|
public HotDeploymentStrategy(ClassLoader classLoader, File hotDeployDirectory, boolean enabled)
classLoader
- The parent classloader of the hot deployment classloaderhotDeployDirectory
- The directory in which hot deployable Seam
components are placedMethod Detail |
---|
public 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, boolean enabled)
HotDeploymentStrategy
Needed to prevent dependency on optional librarires
className
- 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 Map<String,Set<Class<?>>> getAnnotatedClasses()
public void scan()
DeploymentStrategy
scan
in class DeploymentStrategy
public static HotDeploymentStrategy instance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |