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, org.codehaus.cargo.util.log.Loggable
Direct Known Subclasses:
EAR, EJB, WAR

public abstract class AbstractDeployable
extends org.codehaus.cargo.util.log.LoggedObject
implements Deployable

Common class for easy Deployable implementations.

Version:
$Id: AbstractDeployable.java 1162 2006-07-31 07:32:59Z vmassol $

Constructor Summary
AbstractDeployable(java.lang.String file)
           
 
Method Summary
 java.lang.String getFile()
          
 org.codehaus.cargo.util.FileHandler getFileHandler()
           
 void setFileHandler(org.codehaus.cargo.util.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(java.lang.String file)
Parameters:
file - the location of the deploybale file being wrapped.
Method Detail

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 org.codehaus.cargo.util.FileHandler getFileHandler()
Returns:
the Cargo file utility class

setFileHandler

public void setFileHandler(org.codehaus.cargo.util.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.


Copyright © 2004-2010 Codehaus. All Rights Reserved.