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 ClassesModifier and TypeClassDescription(package private) static class
static class
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstruct OS specific informationOSInformation
(String sysPropOsName, String sysPropOsVersion) -
Method Summary
Modifier and TypeMethodDescription(package private) static Version
convertUnixKernelVersion
(String sysPropOsVersion) Convert a generic Unix kernel version to an OSGi version.(package private) static org.osgi.resource.Capability
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) (package private) static void
parseNativeCapabilityArgs
(Processor p, String[] args, OSInformation.NativeCapability clause) (package private) static void
-
Field Details
-
Constructor Details
-
OSInformation
Construct OS specific information- Throws:
IllegalArgumentException
-
OSInformation
- Throws:
IllegalArgumentException
-
-
Method Details
-
getProcessorAliases
-
getProcessorAliases
-
convertUnixKernelVersion
Convert a generic Unix kernel version to an OSGi version.
As long as we have digits separated by dots, convert the digits into the respective version segments. Anything left after that conversion is the qualifier. Illegal characters in that qualifier are converted into underscores to ensure that the final qualifier is valid.
- Parameters:
sysPropOsVersion
- the system property "os.version"
-
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
-
createCapability
static org.osgi.resource.Capability createCapability(OSInformation.NativeCapability clause) throws Exception - Throws:
Exception
-
validateNativeCapability
-
parseNativeCapabilityArgs
static void parseNativeCapabilityArgs(Processor p, String[] args, OSInformation.NativeCapability clause) throws Exception - Throws:
Exception
-
getOperatingSystemAliases
public static OSInformation.OSNameVersion getOperatingSystemAliases(String sysPropOsName, String sysPropOsVersion)
-