org.apache.cocoon.maven.deployer.monolithic
Class RuleBasedZipExtractor

java.lang.Object
  extended by org.apache.cocoon.maven.deployer.monolithic.RuleBasedZipExtractor

public class RuleBasedZipExtractor
extends Object

This class performs the actual deployment based on rules. A rule is mapped to a FileDeployer and when the rule is executed and returns true, the file deployer is executed.

Version:
$Id: RuleBasedZipExtractor.html 1351235 2012-06-18 08:41:39Z ilgrosso $

Constructor Summary
RuleBasedZipExtractor(File basedir, org.apache.maven.plugin.logging.Log logger)
           
 
Method Summary
 void addRule(String pattern, FileDeployer fileDeployer)
           
 void extract(File zipFile)
           
protected  FileDeployer findFileDeployer(String name)
          Loop over all rules and if one matches, the corresponding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleBasedZipExtractor

public RuleBasedZipExtractor(File basedir,
                             org.apache.maven.plugin.logging.Log logger)
Method Detail

addRule

public void addRule(String pattern,
                    FileDeployer fileDeployer)

extract

public void extract(File zipFile)
             throws IOException
Throws:
IOException

findFileDeployer

protected FileDeployer findFileDeployer(String name)
Loop over all rules and if one matches, the corresponding



Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.