Tim Allison created TIKA-3665:
---------------------------------
Summary: Clean up default dynamic loading in ServiceLoader
Key: TIKA-3665
URL: https://issues.apache.org/jira/browse/TIKA-3665
Project: Tika
Issue Type: Task
Reporter: Tim Allison
Over the years, it looks like we've grown some weird behavior around dynamic
loading of resources.
My understanding is that we only want dynamic loading in OSGi environments.
However, the default behavior of whether or not the serviceloaders are dynamic
is weird: TikaConfig() has default dynamic=true, TikaConfig(ClassLoader)
dynamic=false, TikaConfig(InputStream|Path) (if service-loader element is not
set to true) dynamic=false.
Further, it looks like some components are dynamic=true by default where as
others are dynamic=false. I suspect no one has noticed that the
DefaultEncodingDetector has default = false.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)