Class Services

java.lang.Object
net.darkhax.bookshelf.common.api.service.Services

public class Services extends Object
  • Field Details

  • Constructor Details

    • Services

      public Services()
  • Method Details

    • load

      public static <T> T load(Class<T> clazz)
    • loadMany

      public static <T> List<T> loadMany(Class<T> clazz)
    • findServices

      public static List<String> findServices(String name) throws IOException
      Finds implementations of a service without initializing or classloading them.
      Parameters:
      name - The fully qualified name of the service.
      Returns:
      A list of all implementations that were found.
      Throws:
      IOException - Sometimes stuff can't be read.