The PdfIndexer is related to the BibDatabaseContext and the FilePreferences. If the user changes the path of the library or the file preferences, we need to create a new PdfIndexer. Otherwise, we can reuse the existing one.
This manager implements a Object Pool pattern for PdfIndexer.
| Modifier and Type | Field and Description |
|---|---|
| private static Map | |
| private static final Logger | |
| private static Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static @NonNull PdfIndexer | |
| public static void | |
| public static void |
| indexerMap | back to summary |
|---|---|
| private static Map<Path, PdfIndexer> indexerMap | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| pathFilePreferencesMap | back to summary |
|---|---|
| private static Map<Path, FilePreferences> pathFilePreferencesMap | |
| PdfIndexerManager | back to summary |
|---|---|
| public PdfIndexerManager() | |
| getIndexer | back to summary |
|---|---|
| public static @NonNull PdfIndexer getIndexer(BibDatabaseContext context, FilePreferences filePreferences) throws IOException | |
| shutdownAllIndexers | back to summary |
|---|---|
| public static void shutdownAllIndexers() | |
| shutdownIndexer | back to summary |
|---|---|
| public static void shutdownIndexer(BibDatabaseContext context) | |