1 /* |
1 /* |
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 package com.nokia.mj.impl.installer.jsrpluginnotifier; |
19 package com.nokia.mj.impl.installer.jsrpluginnotifier; |
20 |
20 |
|
21 import com.nokia.mj.impl.storage.StorageSession; |
21 import com.nokia.mj.impl.utils.Logger; |
22 import com.nokia.mj.impl.utils.Logger; |
22 import com.nokia.mj.impl.utils.Uid; |
23 import com.nokia.mj.impl.utils.Uid; |
23 import java.util.Hashtable; |
24 import java.util.Hashtable; |
24 |
25 |
25 /** |
26 /** |
26 * Information passed to JSR plugins when installing or uninstalling |
27 * Information passed to JSR plugins when installing or uninstalling |
27 * Java applications |
28 * Java applications. |
28 * @see JsrPluginNotifier |
29 * @see JsrPluginNotifier |
29 */ |
30 */ |
30 public final class InstallerExtensionInfo |
31 public final class InstallerExtensionInfo |
31 { |
32 { |
32 /** |
33 /** |
33 * MIDlet Suite Uid. Can be null. |
34 * MIDlet Suite Uid. |
34 */ |
35 */ |
35 public Uid iUid; |
36 public Uid iUid = null; |
36 |
37 |
37 /** |
38 /** |
38 * true if upgrade installation |
39 * Application Uids. |
39 */ |
40 */ |
40 public boolean iUpgrade; |
41 public Uid[] iAppUids = null; |
41 |
42 |
42 /** |
43 /** |
43 * true if silent installation |
44 * Application suite root directory path. |
44 */ |
45 */ |
45 public boolean iSilent; |
46 public String iRootPath = null; |
46 |
47 |
47 /** |
48 /** |
48 * Combined jad./.jar attributes. |
49 * True if upgrade installation. |
|
50 */ |
|
51 public boolean iUpgrade = false; |
|
52 |
|
53 /** |
|
54 * True if silent installation. |
|
55 */ |
|
56 public boolean iSilent = false; |
|
57 |
|
58 /** |
|
59 * Combined jad/jar attributes. |
49 * Key is attribute name, value is com.nokia.mj.impl.utils.Attribute object |
60 * Key is attribute name, value is com.nokia.mj.impl.utils.Attribute object |
50 * Can be null. |
61 * Can be null. |
51 */ |
62 */ |
52 public Hashtable iAttributes; |
63 public Hashtable iAttributes = null; |
|
64 |
|
65 /** |
|
66 * JavaStorage session where installation/uninstallation changes are made. |
|
67 */ |
|
68 public StorageSession iStorageSession = null; |
53 |
69 |
54 /*** ----------------------------- PUBLIC ------------------------------ */ |
70 /*** ----------------------------- PUBLIC ------------------------------ */ |
55 |
71 |
56 /** |
72 /** |
57 * Messages are logged to Java Installer log (at EInfo level). |
73 * Messages are logged to Java Installer log (at EInfo level). |