Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-1558

Create a Parser Blacklist

Agile BoardAttach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.8
    • None
    • None

    Description

      As talked about in TIKA-1555 and TIKA-1557, it would be nice to be able to disable Parsers without pulling their dependencies out. In some cases (e.g. disable all ExternalParsers), there may not be an easy way to exclude the dependencies via Maven.

      So, an initial design would be to include another file like META-INF/services/org.apache.tika.parser.Parser.blacklist. We create a new method ServiceLoader#loadServiceProviderBlacklist. Then, in ServiceLoader#loadServiceProviders, we remove all elements of the list that are assignable to an element in ServiceLoader#loadServiceProviderBlacklist.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tpalsulich Tyler Bui-Palsulich
            tpalsulich Tyler Bui-Palsulich
            Votes:
            0 Vote for this issue
            Watchers:
            6 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment