Package org.codelibs.fess.thumbnail.impl
Class EmptyGenerator
java.lang.Object
org.codelibs.fess.thumbnail.impl.BaseThumbnailGenerator
org.codelibs.fess.thumbnail.impl.EmptyGenerator
- All Implemented Interfaces:
ThumbnailGenerator
Empty implementation of thumbnail generator that does not generate any thumbnails.
This class is used as a no-op thumbnail generator when thumbnail generation is disabled
or when no specific thumbnail generator is configured.
-
Field Summary
Fields inherited from class org.codelibs.fess.thumbnail.impl.BaseThumbnailGenerator
available, conditionMap, directoryNameLength, filePathMap, generatorList, maxRedirectCount, name -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.codelibs.fess.thumbnail.impl.BaseThumbnailGenerator
addCondition, createTask, expandPath, getName, isAvailable, isTarget, process, process, register, setDirectoryNameLength, setGeneratorList, setMaxRedirectCount, setName, updateThumbnailField
-
Constructor Details
-
EmptyGenerator
public EmptyGenerator()Default constructor.
-
-
Method Details
-
generate
Generates a thumbnail for the specified ID and output file. This implementation always returns false, indicating no thumbnail was generated.- Parameters:
thumbnailId- the ID of the thumbnail to generateoutputFile- the output file where the thumbnail should be saved- Returns:
- false always, as this generator does not create thumbnails
-
destroy
public void destroy()Destroys this generator and releases any resources. This implementation does nothing as no resources are held.
-