Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 240724 | Differences between
and this patch

Collapse All | Expand All

(-)core/framework/org/eclipse/osgi/framework/internal/core/Framework.java (+1 lines)
Lines 402-407 Link Here
402
	}
402
	}
403
403
404
	private void loadVMProfile() {
404
	private void loadVMProfile() {
405
		// TODO handle managing profiles here
405
		Properties profileProps = findVMProfile();
406
		Properties profileProps = findVMProfile();
406
		String systemExports = properties.getProperty(Constants.OSGI_FRAMEWORK_SYSTEM_PACKAGES);
407
		String systemExports = properties.getProperty(Constants.OSGI_FRAMEWORK_SYSTEM_PACKAGES);
407
		// set the system exports property using the vm profile; only if the property is not already set
408
		// set the system exports property using the vm profile; only if the property is not already set
(-)supplement/src/org/eclipse/osgi/service/profile/ProfileService.java (+63 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2008 Code 9 Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     Chris Aniszczyk <zx@code9.com> - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.osgi.service.profile;
12
13
/**
14
 * The profile service is used to register, unregister and acquire profiles.
15
 * 
16
 * <p>
17
 * Profiles available by default:
18
 * <ul>
19
 * 	<li>OSGi/Minimum-1.0</li>
20
 * 	<li>OSGi/Minimum-1.1</li>
21
 *  <li>CDC-1.0/Foundation-1.0</li>
22
 *  <li>CDC-1.1/Foundation-1.1</li>
23
 *  <li>JRE-1.1</li>
24
 *  <li>J2SE-1.2</li>
25
 *  <li>J2SE-1.3</li>
26
 *  <li>J2SE-1.4</li>
27
 *  <li>J2SE-1.5</li>
28
 *  <li>JavaSE-1.6</li>
29
 * </p>
30
 * 
31
 * <p>
32
 * This interface is not intended to be implemented by clients.
33
 * </p>
34
 * 
35
 * @since 3.5
36
 * @noimplement This interface is not intended to be implemented by clients.
37
 */
38
public interface ProfileService {
39
40
	/**
41
	 * Acquire a profile
42
	 * 
43
	 * @param name the unique name of the profile
44
	 * 
45
	 * @return A <code>IProfile</code> for the given unique name.
46
	 */
47
	public IProfile getProfile(String name);
48
49
	/**
50
	 * Register a profile
51
	 * 
52
	 * @param profile the profile to register
53
	 */
54
	public void register(IProfile profile);
55
56
	/**
57
	 * Unregister a profile
58
	 * 
59
	 * @param profile the profile to unregister
60
	 */
61
	public void unregister(IProfile profile);
62
63
}
(-)supplement/src/org/eclipse/osgi/service/profile/IProfile.java (+41 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2008 Code 9 Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     Chris Aniszczyk <zx@code9.com> - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.osgi.service.profile;
12
13
/**
14
 * A vm profile represents an execution environment.
15
 * 
16
 * @since 3.5
17
 */
18
public interface IProfile {
19
20
	/**
21
	 * The unique and primary name of the execution environment profile
22
	 * 
23
	 * @since 3.5
24
	 */
25
	public String getName();
26
27
	/**
28
	 * The unique and primary name of the execution environment profile
29
	 * 
30
	 * @since 3.5
31
	 */
32
	public String[] getSystemPackages();
33
34
	/**
35
	 * The unique and primary name of the execution environment profile
36
	 * 
37
	 * @since 3.5
38
	 */
39
	public String[] getSupportedEnvironments();
40
41
}

Return to bug 240724