org.jboss.seam.deployment
Class DeploymentStrategy

java.lang.Object
  extended by org.jboss.seam.deployment.DeploymentStrategy
Direct Known Subclasses:
HotDeploymentStrategy, StandardDeploymentStrategy, WarRootDeploymentStrategy

public abstract class DeploymentStrategy
extends Object

A DeploymentStrategy coordinates the deployment of resources for a Seam application.

Author:
Pete Muir

Field Summary
static String RESOURCE_BUNDLE
          The resource bundle used to control Seam deployment
static String SCANNERS_KEY
          The key under which to list possible scanners.
 
Constructor Summary
DeploymentStrategy()
           
 
Method Summary
abstract  ClassLoader getClassLoader()
          Get the classloader to use
 Map<String,DeploymentHandler> getDeploymentHandlers()
          Get (or modify) any registered DeploymentHandlers Implementations of DeploymentStrategy may add default DeploymentHandlers
protected abstract  String getDeploymentHandlersKey()
           
 List<File> getFiles()
           
protected  List<String> getPropertyValues(String key)
          Get a list of possible values for a given key.
protected  Scanner getScanner()
          Get the scanner being used
 long getTimestamp()
           
 void handle(String name)
          Handle a resource using any registered DeploymentHandlers
abstract  void scan()
          Do the scan for resources Should only be called by Seam
 void setFiles(List<File> files)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCANNERS_KEY

public static final String SCANNERS_KEY
The key under which to list possible scanners. System properties take precedence over /META-INF/seam-scanner.properties. Entries will be tried in sequential order until a Scanner can be loaded. This can be specified as a System property or in /META-INF/seam-deployment.properties

See Also:
Constant Field Values

RESOURCE_BUNDLE

public static final String RESOURCE_BUNDLE
The resource bundle used to control Seam deployment

See Also:
Constant Field Values
Constructor Detail

DeploymentStrategy

public DeploymentStrategy()
Method Detail

getPropertyValues

protected List<String> getPropertyValues(String key)
Get a list of possible values for a given key. First, System properties are tried, followed by the specified resource bundle (first in classpath only). Colon (:) deliminated lists are split out.


scan

public abstract void scan()
Do the scan for resources Should only be called by Seam


getScanner

protected Scanner getScanner()
Get the scanner being used


getClassLoader

public abstract ClassLoader getClassLoader()
Get the classloader to use


getDeploymentHandlers

public Map<String,DeploymentHandler> getDeploymentHandlers()
Get (or modify) any registered DeploymentHandlers Implementations of DeploymentStrategy may add default DeploymentHandlers


getDeploymentHandlersKey

protected abstract String getDeploymentHandlersKey()

handle

public void handle(String name)
Handle a resource using any registered DeploymentHandlers

Parameters:
name - Path to a resource to handle

getFiles

public List<File> getFiles()

setFiles

public void setFiles(List<File> files)

getTimestamp

public long getTimestamp()