org.ow2.petals.jbi.management.task
Class AbstractFileManipulationTask

java.lang.Object
  extended by org.ow2.petals.jbi.management.task.AbstractLoggableTask
      extended by org.ow2.petals.jbi.management.task.AbstractFileManipulationTask
All Implemented Interfaces:
Task
Direct Known Subclasses:
AbstractCreateStateHolderTask, CopyArchiveToInstalledDirTask, CopyArchiveToWorkDirTask, DownloadTask, ExtractTask, RemoveComponentArchiveTask, RemoveSAArchiveTask, RemoveSLArchiveTask

public abstract class AbstractFileManipulationTask
extends AbstractLoggableTask

Abstract Tack class for classes whose manipulate archive files.

Author:
ofabre

Field Summary
 
Fields inherited from class org.ow2.petals.jbi.management.task.AbstractLoggableTask
log
 
Constructor Summary
AbstractFileManipulationTask(org.ow2.petals.util.LoggingUtil log, java.lang.String petalsRootDirectory)
           
 
Method Summary
 java.io.File getInstalledArchive(java.lang.String archiveName)
          Get a file of the given name from the installed directory
 java.io.File getWorkDirectory()
          Retrieve work directory from AutoloaderServiceImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ow2.petals.jbi.management.Task
execute, undo
 

Constructor Detail

AbstractFileManipulationTask

public AbstractFileManipulationTask(org.ow2.petals.util.LoggingUtil log,
                                    java.lang.String petalsRootDirectory)
Method Detail

getInstalledArchive

public java.io.File getInstalledArchive(java.lang.String archiveName)
Get a file of the given name from the installed directory

Parameters:
file - the file to look for
Returns:
the

getWorkDirectory

public java.io.File getWorkDirectory()
Retrieve work directory from AutoloaderServiceImpl

Returns:
the work directory file


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.