Class OSInformation

java.lang.Object
aQute.bnd.osgi.OSInformation

public class OSInformation extends Object
OS specific information, used by the native_capability macro for osgi.native.* bundle properties.
  • Constructor Details

  • Method Details

    • getProcessorAliases

      public static String[] getProcessorAliases(String osArch)
    • getProcessorAliases

      public static String[] getProcessorAliases()
    • getNativeCapabilityClause

      public static String getNativeCapabilityClause(Processor p, String[] args) throws Exception
      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 reporting
      args - 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

      public static org.osgi.resource.Capability getDefaultNativeCapability() throws Exception
      Return the default capability for the current platform
      Returns:
      a default capability for the current platform
      Throws:
      Exception