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

java.lang.Object
  extended by org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper
All Implemented Interfaces:
Ordered, StructureDeployer

public class StructureDeployerWrapper
extends Object
implements StructureDeployer

StructureDeployerWrapper.

To avoid any problems with error handling by the deployers.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.deployers.spi.Ordered
Ordered.OrderedComparator
 
Field Summary
 
Fields inherited from interface org.jboss.deployers.spi.Ordered
COMPARATOR
 
Constructor Summary
StructureDeployerWrapper(StructureDeployer deployer)
          Create a new StructureDeployerWrapper.
 
Method Summary
 boolean determineStructure(StructureContext context)
          Determine the structure of a deployment
 boolean equals(Object obj)
           
 int getRelativeOrder()
          Get the relative order
 int hashCode()
           
 boolean isSupportsCandidateAnnotations()
          Do we support candidate annotations lookup.
 void setRelativeOrder(int order)
          Set the relative order.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StructureDeployerWrapper

public StructureDeployerWrapper(StructureDeployer deployer)
Create a new StructureDeployerWrapper.

Parameters:
deployer - the deployer
Method Detail

determineStructure

public boolean determineStructure(StructureContext context)
                           throws DeploymentException
Description copied from interface: StructureDeployer
Determine the structure of a deployment

Specified by:
determineStructure in interface StructureDeployer
Parameters:
context - the structure context
Returns:
true when it recognised the context
Throws:
DeploymentException - for an error

isSupportsCandidateAnnotations

public boolean isSupportsCandidateAnnotations()
Description copied from interface: StructureDeployer
Do we support candidate annotations lookup.

Specified by:
isSupportsCandidateAnnotations in interface StructureDeployer
Returns:
true if candidate annotaiotns lookup is supported, false otherwise

getRelativeOrder

public int getRelativeOrder()
Description copied from interface: Ordered
Get the relative order

Specified by:
getRelativeOrder in interface Ordered
Returns:
the relative order

setRelativeOrder

public void setRelativeOrder(int order)
Description copied from interface: Ordered
Set the relative order.

Specified by:
setRelativeOrder in interface Ordered
Parameters:
order - the order

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


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