7
7
* https://www.eclipse.org/legal/epl-2.0/
8
8
*
9
9
* SPDX-License-Identifier: EPL-2.0
10
- *
10
+ *
11
11
* Contributors:
12
12
* IBM Corporation - initial API and implementation
13
13
*******************************************************************************/
14
14
15
15
package org .eclipse .update .configurator ;
16
16
17
- import java .io .* ;
18
- import java .net .* ;
17
+ import java .io .IOException ;
18
+ import java .net .URL ;
19
19
20
20
import org .eclipse .update .internal .configurator .ConfigurationActivator ;
21
21
import org .eclipse .update .internal .configurator .Utils ;
22
- import org .osgi .framework .*;
22
+ import org .osgi .framework .BundleContext ;
23
+ import org .osgi .framework .ServiceReference ;
23
24
24
25
/**
25
26
* Helper class to get platform configuration data without having to
34
35
* @deprecated The org.eclipse.update component has been replaced by Equinox p2.
35
36
* This API will be deleted in a future release. See bug 311590 for details.
36
37
*/
37
- @ Deprecated
38
+ @ Deprecated ( forRemoval = true , since = "2024-03" )
38
39
public class ConfiguratorUtils {
39
40
/**
40
41
* Returns the current platform configuration. This method replaces the one we used
41
42
* to call on BootLoader.
42
- *
43
+ *
43
44
* @return platform configuration used in current instance of platform
44
45
* @since 3.0
45
46
*/
@@ -57,11 +58,11 @@ public static IPlatformConfiguration getCurrentPlatformConfiguration() {
57
58
context .ungetService (configFactorySR );
58
59
return currentConfig ;
59
60
}
60
-
61
+
61
62
/**
62
63
* Returns a platform configuration object, optionally initialized with previously saved
63
64
* configuration information. We will use this method instead of the old one in BootLoader.
64
- *
65
+ *
65
66
* @param url location of previously save configuration information. If <code>null</code>
66
67
* is specified, an empty configuration object is returned
67
68
* @return platform configuration used in current instance of platform
@@ -80,11 +81,11 @@ public static IPlatformConfiguration getPlatformConfiguration(URL url) throws IO
80
81
context .ungetService (configFactorySR );
81
82
return config ;
82
83
}
83
-
84
+
84
85
/**
85
86
* Returns a platform configuration object, optionally initialized with previously saved
86
87
* configuration information. We will use this method instead of the old one in BootLoader.
87
- *
88
+ *
88
89
* @param url location of previously save configuration information. If <code>null</code>
89
90
* is specified, an empty configuration object is returned
90
91
* @param loc location of the platform installation. Used to resolve entries in the save location
@@ -104,7 +105,7 @@ public static IPlatformConfiguration getPlatformConfiguration(URL url, URL loc)
104
105
context .ungetService (configFactorySR );
105
106
return config ;
106
107
}
107
-
108
+
108
109
/**
109
110
* @return the URL of this eclispe installation
110
111
*/
0 commit comments