org.jboss.deployers.spi.structure
Class StructureMetaDataFactory

java.lang.Object
  extended by org.jboss.deployers.spi.structure.StructureMetaDataFactory
Direct Known Subclasses:
DefaultStructureMetaDataFactory

public abstract class StructureMetaDataFactory
extends Object

StructureFactory.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
StructureMetaDataFactory()
           
 
Method Summary
static ClassPathEntry createClassPathEntry()
          Create a new classpath entry
static ClassPathEntry createClassPathEntry(String path)
          Create a new classpath entry
static ClassPathEntry createClassPathEntry(String path, String suffixes)
          Create a new classpath entry
static ContextInfo createContextInfo()
          Create a new ContextInfo.
static ContextInfo createContextInfo(String path)
          Create a new ContextInfo.
static ContextInfo createContextInfo(String path, List<ClassPathEntry> classPath)
          Create a new ContextInfo.
static ContextInfo createContextInfo(String path, List<String> metaDataPath, List<ClassPathEntry> classPath)
          Create a new ContextInfo.
static ContextInfo createContextInfo(String path, String metaDataPath, List<ClassPathEntry> classPath)
          Create a new ContextInfo.
static StructureMetaData createStructureMetaData()
          Create a new StructureMetaData.
protected abstract  ClassPathEntry newClassPathEntry(String path, String suffixes)
          Create a new classpath entry
protected abstract  ContextInfo newContextInfo(String path)
          Create a new ContextInfo.
protected abstract  ContextInfo newContextInfo(String path, List<ClassPathEntry> classPath)
          Create a new ContextInfo.
protected abstract  ContextInfo newContextInfo(String path, List<String> metaDataPath, List<ClassPathEntry> classPath)
          Create a new ContextInfo.
protected abstract  ContextInfo newContextInfo(String path, String metaDataPath, List<ClassPathEntry> classPath)
          Create a new ContextInfo.
protected abstract  StructureMetaData newStructureMetaData()
          Create a new StructureMetaData.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StructureMetaDataFactory

public StructureMetaDataFactory()
Method Detail

createStructureMetaData

public static StructureMetaData createStructureMetaData()
Create a new StructureMetaData.

Returns:
the structure metadata

createContextInfo

public static ContextInfo createContextInfo()
Create a new ContextInfo.

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

createContextInfo

public static ContextInfo createContextInfo(String path)
Create a new ContextInfo.

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

createContextInfo

public static ContextInfo createContextInfo(String path,
                                            List<ClassPathEntry> classPath)
Create a new ContextInfo.

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

createContextInfo

public static ContextInfo createContextInfo(String path,
                                            String metaDataPath,
                                            List<ClassPathEntry> classPath)
Create a new ContextInfo.

Parameters:
path - the path
metaDataPath - the metadata path
classPath - the class path
Returns:
the context info
Throws:
IllegalArgumentException - for a null path or metadata path

createContextInfo

public static ContextInfo createContextInfo(String path,
                                            List<String> metaDataPath,
                                            List<ClassPathEntry> classPath)
Create a new ContextInfo.

Parameters:
path - the path
metaDataPath - the metadata path
classPath - the class path
Returns:
the context info
Throws:
IllegalArgumentException - for a null path or metadata path

createClassPathEntry

public static ClassPathEntry createClassPathEntry()
Create a new classpath entry

Returns:
the classpath entry

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

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

newStructureMetaData

protected abstract StructureMetaData newStructureMetaData()
Create a new StructureMetaData.

Returns:
the structure metadata

newContextInfo

protected abstract ContextInfo newContextInfo(String path)
Create a new ContextInfo.

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

newContextInfo

protected abstract ContextInfo newContextInfo(String path,
                                              List<ClassPathEntry> classPath)
Create a new ContextInfo.

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

newContextInfo

protected abstract ContextInfo newContextInfo(String path,
                                              String metaDataPath,
                                              List<ClassPathEntry> classPath)
Create a new ContextInfo.

Parameters:
path - the path
metaDataPath - the metadata path
classPath - the class path
Returns:
the context info
Throws:
IllegalArgumentException - for a null path or metadata path

newContextInfo

protected abstract ContextInfo newContextInfo(String path,
                                              List<String> metaDataPath,
                                              List<ClassPathEntry> classPath)
Create a new ContextInfo.

Parameters:
path - the path
metaDataPath - the metadata path
classPath - the class path
Returns:
the context info
Throws:
IllegalArgumentException - for a null path or metadata path

newClassPathEntry

protected abstract ClassPathEntry newClassPathEntry(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


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