KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sync4j > syncclient > spap > installer > InstallationContext


1 /**
2  * Copyright (C) 2003-2005 Funambol
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18 package sync4j.syncclient.spap.installer;
19
20 import sync4j.syncclient.spap.Asset;
21 import sync4j.syncclient.spap.AssetDAO;
22
23 /**
24  * This class keeps information about the installation process and provides a
25  * way for installation program to interact with the installation engine,
26  * without the need of the AssetManager.
27  *
28  * @author Stefano Fornari
29  * @version $Id: InstallationContext.java,v 1.2 2005/01/19 11:18:36 fabius Exp $
30  */

31 public class InstallationContext {
32
33     // ------------------------------------------------------------ Private Date
34

35     // ------------------------------------------------------------ Constructors
36

37     /** Creates a new instance of InstallationContext */
38     public InstallationContext() {
39     }
40
41     // -------------------------------------------------------------- Properties
42

43     /**
44      * The installation program working directory
45      */

46     private String JavaDoc workingDirectory;
47
48     public void setWorkingDirectory(String JavaDoc workingDirectory) {
49         this.workingDirectory = workingDirectory;
50     }
51
52     public String JavaDoc getWorkingDirectory() {
53         return this.workingDirectory;
54     }
55
56     /**
57      * The executables directory
58      */

59     private String JavaDoc binDirectory;
60
61     public void setBinDirectory(String JavaDoc binDirectory) {
62         this.binDirectory = binDirectory;
63     }
64
65     public String JavaDoc getBinDirectory() {
66         return this.binDirectory;
67     }
68
69     /**
70      * Classes and other libraries directory
71      */

72     private String JavaDoc libDirectory;
73
74     public void setLibDirectory(String JavaDoc libDirectory) {
75         this.libDirectory = libDirectory;
76     }
77
78     public String JavaDoc getLibDirectory() {
79         return this.libDirectory;
80     }
81
82     /**
83      * The asset being installed/uninstalled
84      */

85     private Asset asset;
86
87     public void setAsset(Asset asset) {
88         this.asset = asset;
89     }
90
91     public Asset getAsset() {
92         return this.asset;
93     }
94 }
Popular Tags