org.codehaus.cargo.container.spi.deployable
Class AbstractDeployable
java.lang.Object
org.codehaus.cargo.util.log.LoggedObject
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 $
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 |
AbstractDeployable
public AbstractDeployable(java.lang.String file)
- Parameters:
file
- the location of the deploybale file being wrapped.
getFile
public java.lang.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-2011 Codehaus. All Rights Reserved.