org.jboss.deployers.structure.spi.helpers
Class AbstractStructureBuilder

java.lang.Object
  extended by org.jboss.deployers.structure.spi.helpers.AbstractStructureBuilder
All Implemented Interfaces:
StructureBuilder
Direct Known Subclasses:
VFSStructureBuilder

public class AbstractStructureBuilder
extends Object
implements StructureBuilder

AbstractStructureBuilder.

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

Constructor Summary
AbstractStructureBuilder()
           
 
Method Summary
protected  void applyComparator(DeploymentContext context, ContextInfo contextInfo)
          Try to apply the comparator
protected  void applyContextInfo(DeploymentContext context, ContextInfo contextInfo)
          Apply the context info.
protected  void applyStructureMetaData(DeploymentContext deploymentContext, StructureMetaData structureMetaData)
          Apply the structure metadata.
protected  DeploymentContext createChildDeploymentContext(DeploymentContext parent, ContextInfo child)
          Create a child deployment context
protected  DeploymentContext createRootDeploymentContext(Deployment deployment)
          Create the root deployment context
protected  DeploymentContext createRootDeploymentContext(Deployment deployment, StructureMetaData metaData)
          Create the root deployment context
protected  StructureProcessor getStructureProcessor()
          Get the context info processor.
protected  void populateContext(DeploymentContext context, StructureMetaData metaData)
          Populate the child deployment contexts
 DeploymentContext populateContext(Deployment deployment, StructureMetaData metaData)
          Create the tree
protected  void prepareContextInfo(DeploymentContext parentDeploymentContext, ContextInfo contextInfo)
          Prepare the structure metadata.
protected  void prepareStructureMetaData(Deployment deploymentContext, StructureMetaData structureMetaData)
          Prepare the structure metadata.
 void setStructureProcessor(StructureProcessor structureProcessor)
          Set structure processor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractStructureBuilder

public AbstractStructureBuilder()
Method Detail

populateContext

public DeploymentContext populateContext(Deployment deployment,
                                         StructureMetaData metaData)
                                  throws DeploymentException
Description copied from interface: StructureBuilder
Create the tree

Specified by:
populateContext in interface StructureBuilder
Parameters:
deployment - the deployment
metaData - the metaData
Returns:
the deployment context
Throws:
DeploymentException - for any error

populateContext

protected void populateContext(DeploymentContext context,
                               StructureMetaData metaData)
                        throws Exception
Populate the child deployment contexts

Parameters:
context - the context
metaData - the metadata
Throws:
Exception - for any error

prepareStructureMetaData

protected void prepareStructureMetaData(Deployment deploymentContext,
                                        StructureMetaData structureMetaData)
Prepare the structure metadata.

Parameters:
deploymentContext - the deployment
structureMetaData - the structure metadata

prepareContextInfo

protected void prepareContextInfo(DeploymentContext parentDeploymentContext,
                                  ContextInfo contextInfo)
Prepare the structure metadata.

Parameters:
parentDeploymentContext - the parent deployment context
contextInfo - the context info

applyStructureMetaData

protected void applyStructureMetaData(DeploymentContext deploymentContext,
                                      StructureMetaData structureMetaData)
Apply the structure metadata.

Parameters:
deploymentContext - the parent deployment context
structureMetaData - the structure metadata

applyContextInfo

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

Parameters:
context - the context
contextInfo - the contextInfo
Throws:
Exception - for any error

applyComparator

protected void applyComparator(DeploymentContext context,
                               ContextInfo contextInfo)
                        throws Exception
Try to apply the comparator

Parameters:
context - the context
contextInfo - the contextInfo
Throws:
Exception - for any error

createRootDeploymentContext

protected DeploymentContext createRootDeploymentContext(Deployment deployment,
                                                        StructureMetaData metaData)
                                                 throws Exception
Create the root deployment context

Parameters:
deployment - the deployment
metaData - the structure meta data
Returns:
the deployment context
Throws:
Exception - for any error

createRootDeploymentContext

protected DeploymentContext createRootDeploymentContext(Deployment deployment)
                                                 throws Exception
Create the root deployment context

Parameters:
deployment - the deployment
Returns:
the deployment context
Throws:
Exception - for any error

createChildDeploymentContext

protected DeploymentContext createChildDeploymentContext(DeploymentContext parent,
                                                         ContextInfo child)
                                                  throws Exception
Create a child deployment context

Parameters:
parent - the parent deployment context
child - the child context
Returns:
the deployment context
Throws:
Exception - for any error

setStructureProcessor

public void setStructureProcessor(StructureProcessor structureProcessor)
Set structure processor.

Parameters:
structureProcessor - the context info processor

getStructureProcessor

protected StructureProcessor getStructureProcessor()
Get the context info processor.

Returns:
the structure processor


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