Class OsxNativeDiscoveryStrategy
- java.lang.Object
-
- uk.co.caprica.vlcj.factory.discovery.strategy.BaseNativeDiscoveryStrategy
-
- uk.co.caprica.vlcj.factory.discovery.provider.DirectoryProviderDiscoveryStrategy
-
- uk.co.caprica.vlcj.factory.discovery.strategy.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 Summary
Constructors Constructor Description OsxNativeDiscoveryStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
onFound(String path)
Invoked when native shared libraries found.boolean
supported()
Is this strategy supported?-
Methods inherited from class uk.co.caprica.vlcj.factory.discovery.provider.DirectoryProviderDiscoveryStrategy
discoveryDirectories
-
Methods inherited from class uk.co.caprica.vlcj.factory.discovery.strategy.BaseNativeDiscoveryStrategy
discover, onSetPluginPath
-
-
-
-
Method Detail
-
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 interfaceNativeDiscoveryStrategy
- Overrides:
onFound
in classBaseNativeDiscoveryStrategy
- Parameters:
path
- directory containing the shared libraries- Returns:
true
if the path should be added to the JNA native search path;false
if not
-
-