Package hudson.util

Class Service

java.lang.Object
hudson.util.Service

@Deprecated public class Service extends Object
Deprecated.
use ServiceLoader instead.
Load classes by looking up META-INF/services.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • Service

      public Service()
      Deprecated.
  • Method Details

    • loadInstances

      public static <T> List<T> loadInstances(ClassLoader classLoader, Class<T> type) throws IOException
      Deprecated.
      Throws:
      IOException
    • load

      public static <T> void load(Class<T> spi, ClassLoader cl, Collection<Class<? extends T>> result)
      Deprecated.
      Look up META-INF/service/<i>SPICLASSNAME</i> from the classloader and all the discovered classes into the given collection.