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 java.lang.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(java.io.File source, java.io.File directory, java.io.File workDirectory, java.lang.String config, java.lang.String assembly, java.lang.String environment, java.lang.String[] classPath, FileDigest[] digests, long timestamp)
           
 
Method Summary
 java.lang.String getAssembly()
          Retrieve location of applications assembly.xml file.
 java.lang.String[] getClassPath()
          Retrieve ClassPath for application.
 java.lang.String getConfig()
          Retrieve location of applications config.xml file.
 java.io.File getDirectory()
          Get directory application is installed into.
 java.lang.String getEnvironment()
          Retrieve location of applications environment.xml file.
 FileDigest[] getFileDigests()
          Retrieve file digests.
 java.io.File getSource()
          Get the source of application.
 long getTimestamp()
          Retrieve the timestamp.
 java.io.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(java.io.File source,
                    java.io.File directory,
                    java.io.File workDirectory,
                    java.lang.String config,
                    java.lang.String assembly,
                    java.lang.String environment,
                    java.lang.String[] classPath,
                    FileDigest[] digests,
                    long timestamp)
Method Detail

getSource

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

Returns:
the source of application

getDirectory

public java.io.File getDirectory()
Get directory application is installed into.

Returns:
the applications base directory

getWorkDirectory

public java.io.File getWorkDirectory()
Get the directory in which temporary data for this application is stored.

Returns:
the work directory for application.

getConfig

public java.lang.String getConfig()
Retrieve location of applications config.xml file.

Returns:
url to config.xml file

getAssembly

public java.lang.String getAssembly()
Retrieve location of applications assembly.xml file.

Returns:
url to assembly.xml file

getEnvironment

public java.lang.String getEnvironment()
Retrieve location of applications environment.xml file.

Returns:
url to environment.xml file

getClassPath

public java.lang.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.