org.jboss.deployers.client.spi
Class DeploymentFactory

java.lang.Object
  extended by org.jboss.deployers.client.spi.DeploymentFactory

public class DeploymentFactory
extends Object

DeploymentFactory.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
DeploymentFactory()
           
 
Method Summary
 org.jboss.deployers.spi.structure.ContextInfo addContext(org.jboss.deployers.spi.attachments.PredeterminedManagedObjectAttachments context, String path)
          Add a context to a deployment
 org.jboss.deployers.spi.structure.ContextInfo addContext(org.jboss.deployers.spi.attachments.PredeterminedManagedObjectAttachments context, String path, List<org.jboss.deployers.spi.structure.ClassPathEntry> classPath)
          Add a context to a deployment
 org.jboss.deployers.spi.structure.ContextInfo addContext(org.jboss.deployers.spi.attachments.PredeterminedManagedObjectAttachments context, String path, List<String> metaDataPath, List<org.jboss.deployers.spi.structure.ClassPathEntry> classPath)
          Add a context to a deployment
 org.jboss.deployers.spi.structure.ContextInfo addContext(org.jboss.deployers.spi.attachments.PredeterminedManagedObjectAttachments context, String path, String metaDataPath, List<org.jboss.deployers.spi.structure.ClassPathEntry> classPath)
          Add a context to a deployment
protected static org.jboss.deployers.spi.structure.StructureMetaData assureStructure(org.jboss.deployers.spi.attachments.PredeterminedManagedObjectAttachments context)
          Assure the context has a predetermined structure
static List<org.jboss.deployers.spi.structure.ClassPathEntry> createClassPath(String path)
          Create a new classpath
static List<org.jboss.deployers.spi.structure.ClassPathEntry> createClassPath(String path, String suffixes)
          Create a new classpath
static org.jboss.deployers.spi.structure.ClassPathEntry createClassPathEntry(String path)
          Create a new classpath entry
static org.jboss.deployers.spi.structure.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 org.jboss.deployers.spi.structure.ContextInfo addContext(org.jboss.deployers.spi.attachments.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 org.jboss.deployers.spi.structure.ContextInfo addContext(org.jboss.deployers.spi.attachments.PredeterminedManagedObjectAttachments context,
                                                                String path,
                                                                List<org.jboss.deployers.spi.structure.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 org.jboss.deployers.spi.structure.ContextInfo addContext(org.jboss.deployers.spi.attachments.PredeterminedManagedObjectAttachments context,
                                                                String path,
                                                                String metaDataPath,
                                                                List<org.jboss.deployers.spi.structure.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 org.jboss.deployers.spi.structure.ContextInfo addContext(org.jboss.deployers.spi.attachments.PredeterminedManagedObjectAttachments context,
                                                                String path,
                                                                List<String> metaDataPath,
                                                                List<org.jboss.deployers.spi.structure.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 org.jboss.deployers.spi.structure.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<org.jboss.deployers.spi.structure.ClassPathEntry> createClassPath(String path)
Create a new classpath

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

createClassPathEntry

public static org.jboss.deployers.spi.structure.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<org.jboss.deployers.spi.structure.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 org.jboss.deployers.spi.structure.StructureMetaData assureStructure(org.jboss.deployers.spi.attachments.PredeterminedManagedObjectAttachments context)
Assure the context has a predetermined structure

Parameters:
context - the context
Returns:
the structure


Copyright ? 2007 JBoss Inc.. All Rights Reserved.