Class OsxNativeDiscoveryStrategy

All Implemented Interfaces:
NativeDiscoveryStrategy

public class OsxNativeDiscoveryStrategy extends DirectoryProviderDiscoveryStrategy
Default implementation of a native discovery strategy that searches directories on the OSX operating system.
  • Constructor Details

    • OsxNativeDiscoveryStrategy

      public OsxNativeDiscoveryStrategy()
  • Method Details

    • supported

      public boolean supported()
      Description copied from interface: NativeDiscoveryStrategy
      Is this strategy supported?

      Some strategies may, for example, only be applicable to one particular operating system or another.

      Returns:
      true if this strategy is supported; false otherwise
    • onFound

      public boolean onFound(String path)
      Description copied from interface: NativeDiscoveryStrategy
      Invoked when native shared libraries found.

      This serves two purposes: the first is to enable the strategy implementation to carry out bespoke work if needed; te second is to indicate whether or not the discovered path should be added to the JNA native library search path.

      Specified by:
      onFound in interface NativeDiscoveryStrategy
      Overrides:
      onFound in class BaseNativeDiscoveryStrategy
      Parameters:
      path - directory containing the shared libraries
      Returns:
      true if the path should be added to the JNA native search path; false if not