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

java.lang.Object
  extended by org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers
      extended by org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl
All Implemented Interfaces:
StructuralDeployers, VFSStructuralDeployers

public class VFSStructuralDeployersImpl
extends AbstractStructuralDeployers
implements VFSStructuralDeployers

VFSStructuralDeployersImpl.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
VFSStructuralDeployersImpl()
          Create a new VFSStructuralDeployers.
VFSStructuralDeployersImpl(Set<StructureDeployer> structureDeployers)
          Create a new VFSStructurealDeployers.
 
Method Summary
 void addDeployer(StructureDeployer deployer)
          Add a structure deployer
protected  void determineStructure(Deployment deployment, StructureMetaData structure)
           
 boolean determineStructure(org.jboss.virtual.VirtualFile file, StructureContext parentContext)
          Determine the structure of a virtual file
protected  boolean doDetermineStructure(StructureContext context)
          Determine the structure
 Set<StructureDeployer> getDeployers()
          Get the structureDeployers.
 void removeDeployer(StructureDeployer deployer)
          Remove a structure deployer
 void setDeployers(Set<StructureDeployer> deployers)
          Set the structureDeployers.
 
Methods inherited from class org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers
determineStructure, getStructureBuilder, setStructureBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VFSStructuralDeployersImpl

public VFSStructuralDeployersImpl()
Create a new VFSStructuralDeployers.


VFSStructuralDeployersImpl

public VFSStructuralDeployersImpl(Set<StructureDeployer> structureDeployers)
Create a new VFSStructurealDeployers.

Parameters:
structureDeployers - the given deployers
Throws:
IllegalArgumentException - for null deployers
Method Detail

getDeployers

public Set<StructureDeployer> getDeployers()
Get the structureDeployers.

Returns:
the structureDeployers.

setDeployers

public void setDeployers(Set<StructureDeployer> deployers)
Set the structureDeployers.

Parameters:
deployers - the structureDeployers.
Throws:
IllegalArgumentException - for null deployers

addDeployer

public void addDeployer(StructureDeployer deployer)
Add a structure deployer

Parameters:
deployer - the deployer

removeDeployer

public void removeDeployer(StructureDeployer deployer)
Remove a structure deployer

Parameters:
deployer - the deployer

determineStructure

public boolean determineStructure(org.jboss.virtual.VirtualFile file,
                                  StructureContext parentContext)
                           throws DeploymentException
Description copied from interface: VFSStructuralDeployers
Determine the structure of a virtual file

Specified by:
determineStructure in interface VFSStructuralDeployers
Parameters:
file - the virtual file
parentContext - the parent context
Returns:
true when recognised, false otherwise
Throws:
DeploymentException - for any error

doDetermineStructure

protected boolean doDetermineStructure(StructureContext context)
                                throws DeploymentException
Determine the structure

Parameters:
context - the structure context
Returns:
true when recognised
Throws:
DeploymentException - for any error

determineStructure

protected void determineStructure(Deployment deployment,
                                  StructureMetaData structure)
                           throws Exception
Overrides:
determineStructure in class AbstractStructuralDeployers
Throws:
Exception


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