org.apache.jetspeed.deployment
Interface DeploymentObject


public interface DeploymentObject

DeploymentObject

Object representation of a deployment artifact of some type.

Version:
$Id: DeploymentObject.java 188413 2005-03-23 22:11:46Z ate $
Author:
Scott T. Weaver

Method Summary
 void close()
          Closes any resources that may have been opend during the use of this ObjectHandler.
 InputStream getConfiguration(String configPath)
          retreives the the configuration for this deployment artifact based on the artifact-relative configPath provided.
 File getFile()
           
 String getName()
           getName
 String getPath()
           getPath
 

Method Detail

close

public void close()
           throws IOException
Closes any resources that may have been opend during the use of this ObjectHandler.

Throws:
IOException

getConfiguration

public InputStream getConfiguration(String configPath)
                             throws IOException
retreives the the configuration for this deployment artifact based on the artifact-relative configPath provided.

Parameters:
configPath - artifact-relative path to the confiuration file
Returns:
Configuration of this artificat or null if the configuration is not present in the artifact.
Throws:
IOException - error opening the configuration

getName

public String getName()

getName

Returns:
name of the deployment object. Yeilds the same result as if you were to invoke: new java.io.File(getPath()).getName()

getPath

public String getPath()

getPath

Returns:
path the deployment object's source directory or jar/war file.

getFile

public File getFile()
Returns:
the underlying File object


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.