org.jboss.deployers.vfs.plugins.structure.modify
Class ModificationTypeStructureProcessor

java.lang.Object
  extended by org.jboss.deployers.vfs.plugins.structure.modify.ModificationTypeStructureProcessor
All Implemented Interfaces:
StructureProcessor

public class ModificationTypeStructureProcessor
extends Object
implements StructureProcessor

Determine if we need some modification.

Author:
Ales Justin

Constructor Summary
ModificationTypeStructureProcessor()
           
 
Method Summary
 void addMatcher(ModificationTypeMatcher matcher)
          Add modification type matcher.
 void applyContextInfo(DeploymentContext deploymentContext, ContextInfo contextInfo)
          Apply context info.
 void applyStructureMetaData(DeploymentContext deploymentContext, StructureMetaData structureMetaData)
          Apply structure metadata.
protected  void checkForModification(org.jboss.virtual.VirtualFile root, ContextInfo contextInfo)
          Check for modification.
protected  void checkForModification(org.jboss.virtual.VirtualFile root, StructureMetaData structureMetaData)
          Check for modification.
 void prepareContextInfo(DeploymentContext parentDeploymentContext, ContextInfo contextInfo)
          Prepare context info.
 void prepareStructureMetaData(Deployment deployment, StructureMetaData structureMetaData)
          Prepare structure metadata.
 void removeMatcher(ModificationTypeMatcher matcher)
          Remove modification type matcher.
 void setMatchers(List<ModificationTypeMatcher> matchers)
          Set modification type matchers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModificationTypeStructureProcessor

public ModificationTypeStructureProcessor()
Method Detail

prepareStructureMetaData

public void prepareStructureMetaData(Deployment deployment,
                                     StructureMetaData structureMetaData)
Description copied from interface: StructureProcessor
Prepare structure metadata.

Specified by:
prepareStructureMetaData in interface StructureProcessor
Parameters:
deployment - the deployment
structureMetaData - the structure metadata

prepareContextInfo

public void prepareContextInfo(DeploymentContext parentDeploymentContext,
                               ContextInfo contextInfo)
Description copied from interface: StructureProcessor
Prepare context info.

Specified by:
prepareContextInfo in interface StructureProcessor
Parameters:
parentDeploymentContext - the parent deployment context
contextInfo - the context info

applyStructureMetaData

public void applyStructureMetaData(DeploymentContext deploymentContext,
                                   StructureMetaData structureMetaData)
Description copied from interface: StructureProcessor
Apply structure metadata.

Specified by:
applyStructureMetaData in interface StructureProcessor
Parameters:
deploymentContext - the deployment context
structureMetaData - the structure metadata

applyContextInfo

public void applyContextInfo(DeploymentContext deploymentContext,
                             ContextInfo contextInfo)
Description copied from interface: StructureProcessor
Apply context info.

Specified by:
applyContextInfo in interface StructureProcessor
Parameters:
deploymentContext - the deployment context
contextInfo - the context info

checkForModification

protected void checkForModification(org.jboss.virtual.VirtualFile root,
                                    StructureMetaData structureMetaData)
Check for modification.

Parameters:
root - the deployment root
structureMetaData - the structure metadata

checkForModification

protected void checkForModification(org.jboss.virtual.VirtualFile root,
                                    ContextInfo contextInfo)
Check for modification.

Parameters:
root - the deployment root
contextInfo - the context info

setMatchers

public void setMatchers(List<ModificationTypeMatcher> matchers)
Set modification type matchers.

Parameters:
matchers - the modification type matchers.

addMatcher

public void addMatcher(ModificationTypeMatcher matcher)
Add modification type matcher.

Parameters:
matcher - the modification type matcher

removeMatcher

public void removeMatcher(ModificationTypeMatcher matcher)
Remove modification type matcher.

Parameters:
matcher - the modification type matcher


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