Module uk.co.caprica.vlcj
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
Default implementation of a native discovery strategy that searches directories on the OSX operating system.
-
Constructor Summary
Constructors -
Method Summary
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
-
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
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
-