org.codehaus.cargo.container.spi.deployable
Class AbstractDeployable

java.lang.Object
  extended by org.codehaus.cargo.util.log.LoggedObject
      extended by org.codehaus.cargo.container.spi.deployable.AbstractDeployable
All Implemented Interfaces:
Deployable, Loggable
Direct Known Subclasses:
EAR, EJB, File, RAR, SAR, WAR

public abstract class AbstractDeployable
extends LoggedObject
implements Deployable

Common class for easy Deployable implementations.

Version:
$Id: AbstractDeployable.java 1705 2008-09-02 13:14:55Z adriana $

Constructor Summary
AbstractDeployable(String file)
           
 
Method Summary
 String getFile()
          
 FileHandler getFileHandler()
           
 boolean isExpanded()
          
 void setFileHandler(FileHandler fileHandler)
           
 
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.cargo.container.deployable.Deployable
getType
 
Methods inherited from interface org.codehaus.cargo.util.log.Loggable
getLogger, setLogger
 

Constructor Detail

AbstractDeployable

public AbstractDeployable(String file)
Parameters:
file - the location of the deploybale file being wrapped.
Method Detail

getFile

public String getFile()

Specified by:
getFile in interface Deployable
Returns:
the file representing the archive to deploy
See Also:
Deployable.getFile()

getFileHandler

public FileHandler getFileHandler()
Returns:
the Cargo file utility class

setFileHandler

public void setFileHandler(FileHandler fileHandler)
Parameters:
fileHandler - the Cargo file utility class to use. This method is useful for unit testing with Mock objects as it can be passed a test file handler that doesn't perform any real file action.

isExpanded

public boolean isExpanded()

Specified by:
isExpanded in interface Deployable
Returns:
If the deployable is a directory or not


Copyright © 2004-2012 Codehaus. All Rights Reserved.