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

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

public class AbstractStructureBuilder
extends Object
implements StructureBuilder

AbstractStructureBuilder.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
AbstractStructureBuilder()
           
 
Method Summary
protected  void applyComparator(DeploymentContext context, org.jboss.deployers.spi.structure.ContextInfo contextInfo)
          Try to apply the comparator
protected  void applyContextInfo(DeploymentContext context, org.jboss.deployers.spi.structure.ContextInfo contextInfo)
          Apply the context info.
protected  DeploymentContext createChildDeploymentContext(DeploymentContext parent, org.jboss.deployers.spi.structure.ContextInfo child)
          Create a child deployment context
protected  DeploymentContext createRootDeploymentContext(org.jboss.deployers.client.spi.Deployment deployment)
          Create the root deployment context
protected  void populateContext(DeploymentContext context, org.jboss.deployers.spi.structure.StructureMetaData metaData)
          Populate the child deployment contexts
 DeploymentContext populateContext(org.jboss.deployers.client.spi.Deployment deployment, org.jboss.deployers.spi.structure.StructureMetaData metaData)
          Create the tree
 
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(org.jboss.deployers.client.spi.Deployment deployment,
                                         org.jboss.deployers.spi.structure.StructureMetaData metaData)
                                  throws org.jboss.deployers.spi.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:
org.jboss.deployers.spi.DeploymentException - for any error

populateContext

protected void populateContext(DeploymentContext context,
                               org.jboss.deployers.spi.structure.StructureMetaData metaData)
                        throws Exception
Populate the child deployment contexts

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

applyContextInfo

protected void applyContextInfo(DeploymentContext context,
                                org.jboss.deployers.spi.structure.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,
                               org.jboss.deployers.spi.structure.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(org.jboss.deployers.client.spi.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,
                                                         org.jboss.deployers.spi.structure.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


Copyright © 2008 JBoss Inc.. All Rights Reserved.