org.jboss.seam.deployment
Class WarRootDeploymentStrategy

java.lang.Object
  extended by org.jboss.seam.deployment.DeploymentStrategy
      extended by org.jboss.seam.deployment.WarRootDeploymentStrategy

public class WarRootDeploymentStrategy
extends DeploymentStrategy

A special deployment strategy that can be used to scan the war root. This is treated as a special case.

Author:
pmuir

Field Summary
static String HANDLERS_KEY
           
static String NAME
           
 
Fields inherited from class org.jboss.seam.deployment.DeploymentStrategy
RESOURCE_BUNDLE, SCANNERS_KEY
 
Constructor Summary
WarRootDeploymentStrategy(ClassLoader classLoader, File warRoot)
           
 
Method Summary
 ClassLoader getClassLoader()
          Get the classloader to use
protected  String getDeploymentHandlersKey()
           
 void handle(String name)
          Handle a resource using any registered DeploymentHandlers
 void scan()
          Do the scan for resources Should only be called by Seam
 
Methods inherited from class org.jboss.seam.deployment.DeploymentStrategy
getDeploymentHandlers, getFiles, getPropertyValues, getScanner, getTimestamp, setFiles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HANDLERS_KEY

public static final String HANDLERS_KEY
See Also:
Constant Field Values

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

WarRootDeploymentStrategy

public WarRootDeploymentStrategy(ClassLoader classLoader,
                                 File warRoot)
Method Detail

getClassLoader

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

Specified by:
getClassLoader in class DeploymentStrategy

getDeploymentHandlersKey

protected String getDeploymentHandlersKey()
Specified by:
getDeploymentHandlersKey in class DeploymentStrategy

handle

public void handle(String name)
Description copied from class: DeploymentStrategy
Handle a resource using any registered DeploymentHandlers

Overrides:
handle in class DeploymentStrategy
Parameters:
name - Path to a resource to handle

scan

public void scan()
Description copied from class: DeploymentStrategy
Do the scan for resources Should only be called by Seam

Specified by:
scan in class DeploymentStrategy