org.apache.avalon.phoenix.components.deployer.installer
Class Installation

java.lang.Object
  |
  +--org.apache.avalon.phoenix.components.deployer.installer.Installation

public final class Installation
extends Object

Descriptor for installation. This descriptor contains all the information relating to installed application. In particular it locates all the jars in Classpath, config files and installation directory.

Version:
$Revision: 1.2 $ $Date: 2002/08/06 11:57:40 $
Author:
Peter Donald

Constructor Summary
Installation(File source, File directory, File workDirectory, String config, String assembly, String environment, String[] classPath, FileDigest[] digests, long timestamp)
           
 
Method Summary
 String getAssembly()
          Retrieve location of applications assembly.xml file.
 String[] getClassPath()
          Retrieve ClassPath for application.
 String getConfig()
          Retrieve location of applications config.xml file.
 File getDirectory()
          Get directory application is installed into.
 String getEnvironment()
          Retrieve location of applications environment.xml file.
 FileDigest[] getFileDigests()
          Retrieve file digests.
 File getSource()
          Get the source of application.
 long getTimestamp()
          Retrieve the timestamp.
 File getWorkDirectory()
          Get the directory in which temporary data for this application is stored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Installation

public Installation(File source,
                    File directory,
                    File workDirectory,
                    String config,
                    String assembly,
                    String environment,
                    String[] classPath,
                    FileDigest[] digests,
                    long timestamp)
Method Detail

getSource

public File getSource()
Get the source of application. (Usually a directory in .sar format or a .sar)
Returns:
the source of application

getDirectory

public File getDirectory()
Get directory application is installed into.
Returns:
the applications base directory

getWorkDirectory

public File getWorkDirectory()
Get the directory in which temporary data for this application is stored.
Returns:
the work directory for application.

getConfig

public String getConfig()
Retrieve location of applications config.xml file.
Returns:
url to config.xml file

getAssembly

public String getAssembly()
Retrieve location of applications assembly.xml file.
Returns:
url to assembly.xml file

getEnvironment

public String getEnvironment()
Retrieve location of applications environment.xml file.
Returns:
url to environment.xml file

getClassPath

public String[] getClassPath()
Retrieve ClassPath for application.
Returns:
the classpath

getFileDigests

public FileDigest[] getFileDigests()
Retrieve file digests.
Returns:
the file digest list.

getTimestamp

public long getTimestamp()
Retrieve the timestamp.
Returns:
the timestamp when installation occured.


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.