Package aQute.bnd.osgi
Class OSInformation
java.lang.Object
aQute.bnd.osgi.OSInformation
OS specific information, used by the native_capability macro for
osgi.native.* bundle properties.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionConstruct OS specific informationOSInformation
(String sysPropOsName, String sysPropOsVersion) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.osgi.resource.Capability
Return the default capability for the current platformstatic org.osgi.resource.Capability
getNativeCapability
(aQute.service.reporter.Reporter p, String... args) Return a native capability based on the given specification.static String
getNativeCapabilityClause
(Processor p, String[] args) Helper for the Processor._native_capability macrostatic OSInformation.OSNameVersion
getOperatingSystemAliases
(String sysPropOsName, String sysPropOsVersion) static String[]
static String[]
getProcessorAliases
(String osArch)
-
Constructor Details
-
OSInformation
Construct OS specific information- Throws:
IllegalArgumentException
-
OSInformation
- Throws:
IllegalArgumentException
-
-
Method Details
-
getProcessorAliases
-
getProcessorAliases
-
getNativeCapabilityClause
Helper for the Processor._native_capability macro- Parameters:
args
- the arguments of the macro- Returns:
- a provide capability clause for the native environment
- Throws:
Exception
-
getOperatingSystemAliases
public static OSInformation.OSNameVersion getOperatingSystemAliases(String sysPropOsName, String sysPropOsVersion) -
getNativeCapability
public static org.osgi.resource.Capability getNativeCapability(aQute.service.reporter.Reporter p, String... args) throws Exception Return a native capability based on the given specification.- Parameters:
p
- the processor for the error reportingargs
- a set of assignments. The following keys are supported: osgi.native.processor,osname, osgi.native.osname, osversion,osgi.native.osversion, osgi.native.language, lang- Returns:
- a native capability
- Throws:
Exception
-
getDefaultNativeCapability
Return the default capability for the current platform- Returns:
- a default capability for the current platform
- Throws:
Exception
-