|
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 |
} |