info.magnolia.module.files
Class ModuleFileExtractorTransformer

java.lang.Object
  extended by info.magnolia.module.files.ModuleFileExtractorTransformer
All Implemented Interfaces:
FileExtractor.Transformer

public class ModuleFileExtractorTransformer
extends java.lang.Object
implements FileExtractor.Transformer

A FileExtractor.Transformer which accepts files with paths like /mgnl-files/.../moduleName/... and stores them in ${magnolia.app.rootdir}/.../moduleName/...

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

Constructor Summary
ModuleFileExtractorTransformer(java.lang.String moduleName)
           
 
Method Summary
 java.lang.String accept(java.lang.String resourcePath)
          A filter in the same vein as java.io.FileFilter and such, except this returns the (absolute) targetPath of a file to be extracted, or null if the file should not be extracted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleFileExtractorTransformer

public ModuleFileExtractorTransformer(java.lang.String moduleName)
Method Detail

accept

public java.lang.String accept(java.lang.String resourcePath)
Description copied from interface: FileExtractor.Transformer
A filter in the same vein as java.io.FileFilter and such, except this returns the (absolute) targetPath of a file to be extracted, or null if the file should not be extracted.

Specified by:
accept in interface FileExtractor.Transformer


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.