org.jboss.deployers.client.spi
Class DeploymentFactory

java.lang.Object
  extended by org.jboss.deployers.client.spi.DeploymentFactory
Direct Known Subclasses:
VFSDeploymentFactory

public class DeploymentFactory
extends Object

DeploymentFactory.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
DeploymentFactory()
           
 
Method Summary
 ContextInfo addContext(PredeterminedManagedObjectAttachments context, String path)
          Add a context to a deployment
 ContextInfo addContext(PredeterminedManagedObjectAttachments context, String path, List<ClassPathEntry> classPath)
          Add a context to a deployment
 ContextInfo addContext(PredeterminedManagedObjectAttachments context, String path, List<String> metaDataPath, List<ClassPathEntry> classPath)
          Add a context to a deployment
 ContextInfo addContext(PredeterminedManagedObjectAttachments context, String path, String metaDataPath, List<ClassPathEntry> classPath)
          Add a context to a deployment
protected static StructureMetaData assureStructure(PredeterminedManagedObjectAttachments context)
          Assure the context has a predetermined structure
static List<ClassPathEntry> createClassPath(String path)
          Create a new classpath
static List<ClassPathEntry> createClassPath(String path, String suffixes)
          Create a new classpath
static ClassPathEntry createClassPathEntry(String path)
          Create a new classpath entry
static ClassPathEntry createClassPathEntry(String path, String suffixes)
          Create a new classpath entry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentFactory

public DeploymentFactory()
Method Detail

addContext

public ContextInfo addContext(PredeterminedManagedObjectAttachments context,
                              String path)
Add a context to a deployment

Parameters:
context - the context
path - the path
Returns:
the context info
Throws:
IllegalArgumentException - for a null parameter

addContext

public ContextInfo addContext(PredeterminedManagedObjectAttachments context,
                              String path,
                              List<ClassPathEntry> classPath)
Add a context to a deployment

Parameters:
context - the context
path - the path
classPath - the classpath
Returns:
the context info
Throws:
IllegalArgumentException - for a null parameter

addContext

public ContextInfo addContext(PredeterminedManagedObjectAttachments context,
                              String path,
                              String metaDataPath,
                              List<ClassPathEntry> classPath)
Add a context to a deployment

Parameters:
context - the context
path - the path
metaDataPath - the meta data path
classPath - the classpath
Returns:
the context info
Throws:
IllegalArgumentException - for a null parameter

addContext

public ContextInfo addContext(PredeterminedManagedObjectAttachments context,
                              String path,
                              List<String> metaDataPath,
                              List<ClassPathEntry> classPath)
Add a context to a deployment

Parameters:
context - the context
path - the path
metaDataPath - the meta data path
classPath - the classpath
Returns:
the context info
Throws:
IllegalArgumentException - for a null parameter

createClassPathEntry

public static ClassPathEntry createClassPathEntry(String path)
Create a new classpath entry

Parameters:
path - the path
Returns:
the classpath entry
Throws:
IllegalArgumentException - for a null path

createClassPath

public static List<ClassPathEntry> createClassPath(String path)
Create a new classpath

Parameters:
path - the path
Returns:
the classpath
Throws:
IllegalArgumentException - for a null path

createClassPathEntry

public static ClassPathEntry createClassPathEntry(String path,
                                                  String suffixes)
Create a new classpath entry

Parameters:
path - the path
suffixes - the suffixes
Returns:
the classpath entry
Throws:
IllegalArgumentException - for a null path

createClassPath

public static List<ClassPathEntry> createClassPath(String path,
                                                   String suffixes)
Create a new classpath

Parameters:
path - the path
suffixes - the suffixes
Returns:
the classpath
Throws:
IllegalArgumentException - for a null path

assureStructure

protected static StructureMetaData assureStructure(PredeterminedManagedObjectAttachments context)
Assure the context has a predetermined structure

Parameters:
context - the context
Returns:
the structure


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.