org.jboss.deployers.vfs.plugins.structure
Class VFSStructureBuilder

java.lang.Object
  extended by org.jboss.deployers.structure.spi.helpers.AbstractStructureBuilder
      extended by org.jboss.deployers.vfs.plugins.structure.VFSStructureBuilder
All Implemented Interfaces:
StructureBuilder

public class VFSStructureBuilder
extends AbstractStructureBuilder

VFSStructureBuilder.

Version:
$Revision: 1.1 $
Author:
Adrian Brock, Ales Justin

Constructor Summary
VFSStructureBuilder()
           
 
Method Summary
protected  void applyContextInfo(DeploymentContext context, ContextInfo contextInfo)
          Apply the context info.
protected  org.jboss.virtual.VirtualFile applyModification(org.jboss.virtual.VirtualFile file, ContextInfo contextInfo)
          Apply modification if it exists.
protected  DeploymentContext createChildDeploymentContext(DeploymentContext parent, ContextInfo child)
          Create a child deployment context
protected  DeploymentContext createRootDeploymentContext(Deployment deployment, StructureMetaData metaData)
          Create the root deployment context
 
Methods inherited from class org.jboss.deployers.structure.spi.helpers.AbstractStructureBuilder
applyComparator, applyStructureMetaData, createRootDeploymentContext, getStructureProcessor, populateContext, populateContext, prepareContextInfo, prepareStructureMetaData, setStructureProcessor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VFSStructureBuilder

public VFSStructureBuilder()
Method Detail

createRootDeploymentContext

protected DeploymentContext createRootDeploymentContext(Deployment deployment,
                                                        StructureMetaData metaData)
                                                 throws Exception
Description copied from class: AbstractStructureBuilder
Create the root deployment context

Overrides:
createRootDeploymentContext in class AbstractStructureBuilder
Parameters:
deployment - the deployment
metaData - the structure meta data
Returns:
the deployment context
Throws:
Exception - for any error

createChildDeploymentContext

protected DeploymentContext createChildDeploymentContext(DeploymentContext parent,
                                                         ContextInfo child)
                                                  throws Exception
Description copied from class: AbstractStructureBuilder
Create a child deployment context

Overrides:
createChildDeploymentContext in class AbstractStructureBuilder
Parameters:
parent - the parent deployment context
child - the child context
Returns:
the deployment context
Throws:
Exception - for any error

applyModification

protected org.jboss.virtual.VirtualFile applyModification(org.jboss.virtual.VirtualFile file,
                                                          ContextInfo contextInfo)
                                                   throws Exception
Apply modification if it exists.

Parameters:
file - the file
contextInfo - the context info
Returns:
the modified file
Throws:
Exception - for any error

applyContextInfo

protected void applyContextInfo(DeploymentContext context,
                                ContextInfo contextInfo)
                         throws Exception
Description copied from class: AbstractStructureBuilder
Apply the context info. This transfers the PredeterminedManagedObjects and TransientManagedObjects and other information from the ContextInfo to the DeploymentContext.

Overrides:
applyContextInfo in class AbstractStructureBuilder
Parameters:
context - the context
contextInfo - the contextInfo
Throws:
Exception - for any error


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