Module io.annot8.components.files
Class AbstractFileSystemSource
- java.lang.Object
-
- io.annot8.components.base.components.AbstractComponent
-
- io.annot8.components.files.sources.AbstractFileSystemSource
-
- All Implemented Interfaces:
io.annot8.core.components.Annot8Component,io.annot8.core.components.Source,AutoCloseable
- Direct Known Subclasses:
FileSystemSource
@CreatesContent(io.annot8.common.data.content.FileContent.class) public abstract class AbstractFileSystemSource extends io.annot8.components.base.components.AbstractComponent implements io.annot8.core.components.Source
-
-
Constructor Summary
Constructors Constructor Description AbstractFileSystemSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(io.annot8.core.context.Context context)protected booleancreateItem(io.annot8.core.data.ItemFactory itemFactory, Path path)Set<Pattern>getAcceptedFilePatterns()FileSystemSourceSettingsgetSettings()
-
-
-
Method Detail
-
configure
public void configure(io.annot8.core.context.Context context) throws io.annot8.core.exceptions.BadConfigurationException, io.annot8.core.exceptions.MissingResourceException- Specified by:
configurein interfaceio.annot8.core.components.Annot8Component- Overrides:
configurein classio.annot8.components.base.components.AbstractComponent- Throws:
io.annot8.core.exceptions.BadConfigurationExceptionio.annot8.core.exceptions.MissingResourceException
-
getSettings
public FileSystemSourceSettings getSettings()
-
createItem
protected boolean createItem(io.annot8.core.data.ItemFactory itemFactory, Path path)
-
-