Class ServiceLoaderUtils

java.lang.Object
org.apache.tika.utils.ServiceLoaderUtils

@Deprecated(since="2026-04-30") public class ServiceLoaderUtils extends Object
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
Service Loading and Ordering related utils
  • Constructor Details

    • ServiceLoaderUtils

      public ServiceLoaderUtils()
      Deprecated.
  • Method Details

    • sortLoadedClasses

      public static <T> void sortLoadedClasses(List<T> loaded)
      Deprecated.
      Sorts a list of loaded classes, so that non-Tika ones come before Tika ones, and otherwise in reverse alphabetical order
    • newInstance

      public static <T> T newInstance(String className)
      Deprecated.
      Loads a class and instantiates it
      Type Parameters:
      T - service type
      Parameters:
      className - service class name
      Returns:
      instance of service
    • newInstance

      public static <T> T newInstance(String className, ClassLoader loader)
      Deprecated.
      Loads a class and instantiates it
      Type Parameters:
      T - service type
      Parameters:
      className - service class name
      loader - class loader
      Returns:
      instance of service