org.jboss.deployers.vfs.spi.structure
Interface VFSDeploymentUnit

All Superinterfaces:
org.jboss.deployers.spi.attachments.Attachments, org.jboss.deployers.structure.spi.DeploymentUnit, org.jboss.deployers.spi.attachments.MutableAttachments, Serializable

public interface VFSDeploymentUnit
extends org.jboss.deployers.structure.spi.DeploymentUnit

VFSDeploymentUnit.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Method Summary
 List<org.jboss.virtual.VirtualFile> getClassPath()
          Get the class path
 org.jboss.virtual.VirtualFile getFile(String path)
          Get a virtual file
 org.jboss.virtual.VirtualFile getMetaDataFile(String name)
          Gets a metadata file.
 List<org.jboss.virtual.VirtualFile> getMetaDataFiles(String name, String suffix)
          Gets the metadata files for this deployment unit
 VFSDeploymentUnit getParent()
          Get the parent deployment unit
 VFSDeploymentResourceLoader getResourceLoader()
          Get a resource loader
 org.jboss.virtual.VirtualFile getRoot()
          Get the root
 VFSDeploymentUnit getTopLevel()
          Get the top leve deployment unit
 List<VFSDeploymentUnit> getVFSChildren()
          Get the children
 void setClassPath(List<org.jboss.virtual.VirtualFile> classPath)
          Set the classpath
 
Methods inherited from interface org.jboss.deployers.structure.spi.DeploymentUnit
addComponent, addControllerContextName, addIDependOn, createClassLoader, getAllMetaData, getChildren, getClassLoader, getComponents, getControllerContextNames, getDependencyInfo, getMetaData, getMutableMetaData, getMutableScope, getName, getRelativePath, getResourceClassLoader, getScope, getSimpleName, getTransientManagedObjects, getTypes, isComponent, removeClassLoader, removeComponent, removeControllerContextName, removeIDependOn, setMutableScope, setScope
 
Methods inherited from interface org.jboss.deployers.spi.attachments.MutableAttachments
addAttachment, addAttachment, addAttachment, clear, clearChangeCount, getChangeCount, removeAttachment, removeAttachment, removeAttachment, setAttachments
 
Methods inherited from interface org.jboss.deployers.spi.attachments.Attachments
getAttachment, getAttachment, getAttachment, getAttachments, hasAttachments, isAttachmentPresent, isAttachmentPresent, isAttachmentPresent
 

Method Detail

getMetaDataFile

org.jboss.virtual.VirtualFile getMetaDataFile(String name)
Gets a metadata file. This is a file located under the deployment metadata context(s).

Parameters:
name - the name to exactly match
Returns:
the virtual file or null if not found
Throws:
IllegalArgumentException - for a null name

getMetaDataFiles

List<org.jboss.virtual.VirtualFile> getMetaDataFiles(String name,
                                                     String suffix)
Gets the metadata files for this deployment unit

Parameters:
name - the name to exactly match
suffix - the suffix to partially match
Returns:
the virtual files that match
Throws:
IllegalArgumentException - if both the name and suffix are null

getResourceLoader

VFSDeploymentResourceLoader getResourceLoader()
Get a resource loader

Specified by:
getResourceLoader in interface org.jboss.deployers.structure.spi.DeploymentUnit
Returns:
the resource loader

getFile

org.jboss.virtual.VirtualFile getFile(String path)
Get a virtual file

Parameters:
path - the relative path of the file
Returns:
the virtual file or null if not found

getRoot

org.jboss.virtual.VirtualFile getRoot()
Get the root

Returns:
the root

getClassPath

List<org.jboss.virtual.VirtualFile> getClassPath()
Get the class path

Returns:
the class path

setClassPath

void setClassPath(List<org.jboss.virtual.VirtualFile> classPath)
Set the classpath

Parameters:
classPath - the classpath

getTopLevel

VFSDeploymentUnit getTopLevel()
Get the top leve deployment unit

Specified by:
getTopLevel in interface org.jboss.deployers.structure.spi.DeploymentUnit
Returns:
the top level deployment unit

getParent

VFSDeploymentUnit getParent()
Get the parent deployment unit

Specified by:
getParent in interface org.jboss.deployers.structure.spi.DeploymentUnit
Returns:
the parent or null if there is no parent

getVFSChildren

List<VFSDeploymentUnit> getVFSChildren()
Get the children

Returns:
the children


Copyright ? 2007 JBoss Inc.. All Rights Reserved.