Package com.day.cq.dam.handler.ffmpeg
Class LocatorImpl
java.lang.Object
com.day.cq.dam.handler.ffmpeg.LocatorImpl
- All Implemented Interfaces:
ExecutableLocator
@Service
@Properties(@Property(name="service.description",value="CQ Executable Locator"))
public class LocatorImpl
extends Object
implements ExecutableLocator
Finds an executable on a configurable search path.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for SCR.LocatorImpl(String[] searchPath) Constructor for non-OSGi component usage. -
Method Summary
Modifier and TypeMethodDescriptionReturns the absolute path to an executable, if found, ornullif it could not be found.static String[]
-
Field Details
-
PROP_SEARCH_PATH
- See Also:
-
-
Constructor Details
-
LocatorImpl
public LocatorImpl()Default constructor for SCR. -
LocatorImpl
Constructor for non-OSGi component usage.- Parameters:
searchPath- list of search paths
-
-
Method Details
-
getPath
Description copied from interface:ExecutableLocatorReturns the absolute path to an executable, if found, ornullif it could not be found.- Specified by:
getPathin interfaceExecutableLocator- Parameters:
cmd- the name of an executable file (e.g. "ffmpeg")- Returns:
- absolute path to executable or
null
-
getPathEnv
-