org.apache.jetspeed.deployment
Interface DeploymentObject


public interface DeploymentObject

DeploymentObject

Object representation of a deployment artifact of some type.

Version:
$Id: DeploymentObject.java 516448 2007-03-09 16:25:47Z 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

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

Throws:
IOException

getConfiguration

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

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

String getPath()

getPath

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

getFile

File getFile()
Returns:
the underlying File object


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