Interface JsonConfig

All Known Implementing Classes:
ExtensionConfig

public interface JsonConfig
Interface for objects that provide JSON configuration strings.

This interface allows JSON configuration to be passed in a type-safe way and works seamlessly with records:

 record ConfigHolder(String json) implements JsonConfig {}
 
Since:
Apache Tika 4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the JSON configuration string.
  • Method Details

    • json

      String json()
      Returns the JSON configuration string.
      Returns:
      the JSON configuration