org.jboss.deployers.vfs.spi.structure.helpers
Class VFS2BaseBridgeDeploymentUnitFilter

java.lang.Object
  extended by org.jboss.deployers.vfs.spi.structure.helpers.VFS2BaseBridgeDeploymentUnitFilter
All Implemented Interfaces:
DeploymentUnitFilter, VFSDeploymentUnitFilter
Direct Known Subclasses:
DeploymentProvidedDeploymentUnitFilter

public abstract class VFS2BaseBridgeDeploymentUnitFilter
extends Object
implements DeploymentUnitFilter, VFSDeploymentUnitFilter

Bridge deployment unit filter. It implements both, plain deployment unit and vfs deployment unit filters. It delegates work to base du accepts method for both accepts.

Author:
Ales Justin

Constructor Summary
VFS2BaseBridgeDeploymentUnitFilter()
           
 
Method Summary
 boolean accepts(DeploymentUnit unit)
          Match the deployment unit
 boolean accepts(VFSDeploymentUnit unit)
          Match the deployment unit
protected abstract  boolean doAccepts(DeploymentUnit unit)
          Do we accept this unit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VFS2BaseBridgeDeploymentUnitFilter

public VFS2BaseBridgeDeploymentUnitFilter()
Method Detail

doAccepts

protected abstract boolean doAccepts(DeploymentUnit unit)
Do we accept this unit.

Parameters:
unit - the deployment unit
Returns:
true if accepted, false otherwise

accepts

public boolean accepts(VFSDeploymentUnit unit)
Description copied from interface: VFSDeploymentUnitFilter
Match the deployment unit

Specified by:
accepts in interface VFSDeploymentUnitFilter
Parameters:
unit - the vfs deployment unit
Returns:
true when it matches

accepts

public boolean accepts(DeploymentUnit unit)
Description copied from interface: DeploymentUnitFilter
Match the deployment unit

Specified by:
accepts in interface DeploymentUnitFilter
Parameters:
unit - the deployment unit
Returns:
true when it matches


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