Package org.apache.tika.plugins
Class PluginJson
java.lang.Object
org.apache.tika.plugins.PluginJson
The one
ObjectMapper for plugin configuration JSON (ExtensionConfig.json()).
Fails fast on what a hand-written config gets wrong: unknown keys, a number where an enum name belongs, duplicate keys. Comments are accepted, as in the main config loader. Plain JSON only -- no Tika component serializers -- so it is safe to share across the plugin classloader boundary, provided the plugin does not bundle its own Jackson (the plugins parent pom enforces that).
-
Method Summary
-
Method Details
-
read
Deserializesjsonintotype, reporting failures as config errors.- Throws:
TikaConfigException
-