Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 3219b584b3fdd027c2a2ac6b2e02109066b70e95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*******************************************************************************
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.osgi.container.namespaces;

import org.osgi.framework.Constants;
import org.osgi.resource.Namespace;

/**
 * Eclipse Platform and Requirement Namespace.
 * 
 * <p>
 * This class defines the names for the attributes and directives for this
 * namespace. All unspecified capability attributes are of type {@code String}
 * and are used as arbitrary matching attributes for the capability. The values
 * associated with the specified directive and attribute keys are of type
 * {@code String}, unless otherwise indicated.
 * 
 * @Immutable
 * @noinstantiate This class is not intended to be instantiated by clients.
 * @since 3.10
 */
public class EquinoxNativeEnvironmentNamespace extends Namespace {

	/**
	 * Namespace name for native environment.  Unlike typical name spaces
	 * this namespace is not intended to be used as an attribute.
	 */
	public static final String NATIVE_ENVIRONMENT_NAMESPACE = "equinox.native.environment"; //$NON-NLS-1$

	/**
	 * Specifies the supported canonical names for the environment OS.
	 * All names are lower case.
	 * The value of this attribute must be of type {@code List<String>}.
	 */
	public static final String CAPABILITY_OS_NAME_ATTRIBUTE = NATIVE_ENVIRONMENT_NAMESPACE + ".osname"; //$NON-NLS-1$

	/**
	 * Specifies the environment OS version.
	 * The value of this attribute must be of type {@code Version}.
	 */
	public static final String CAPABILITY_OS_VERSION_ATTRIBUTE = NATIVE_ENVIRONMENT_NAMESPACE + ".osversion"; //$NON-NLS-1$

	/**
	 * Specifies the canonical names for the environment processor.  The value
	 * is lower case.
	 * The value of this attribute must be of type {@code List<String>}.
	 */
	public static final String CAPABILITY_PROCESSOR_ATTRIBUTE = NATIVE_ENVIRONMENT_NAMESPACE + ".processor"; //$NON-NLS-1$

	/**
	 * Specifies the language supported by the environment.  The value
	 * of this attribute must be of type {@code String}.
	 */
	public static final String CAPABILITY_LANGUAGE_ATTRIBUTE = NATIVE_ENVIRONMENT_NAMESPACE + ".language"; //$NON-NLS-1$

	/**
	 * Specifies the paths to the native libraries for the native code requirement.  If this
	 * attribute is not specified then the requirement is an overall requirement for native
	 * code.  Such a requirement is used to or all the other native code requirements together
	 * to determine if the module is resolved or not.
	 * The value of this attribute must be of type {@code List<String>}.
	 */
	public static final String REQUIREMENT_NATIVE_PATHS_ATTRIBUTE = "native.paths"; //$NON-NLS-1$

	/**
	 * Specifies the arbitrary selection filter for the native code requirement.  This filter 
	 * is matched against the system properties.
	 * @see Constants#SELECTION_FILTER_ATTRIBUTE
	 */
	public static final String REQUIREMENT_SELECTION_FILTER_DIRECTIVE = "selection.filter"; //$NON-NLS-1$
}

Back to the top