Class ServiceLoader


  • class ServiceLoader
    extends java.lang.Object
    Utility class to load Service Providers (SPI). This will deprecated as soon as mime4j will be upgraded to Java6 as Java6 has javax.util.ServiceLoader as a core class.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ServiceLoader()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static <T> T load​(java.lang.Class<T> spiClass)
      Loads a Service Provider for the given interface/class (SPI).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServiceLoader

        private ServiceLoader()
    • Method Detail

      • load

        static <T> T load​(java.lang.Class<T> spiClass)
        Loads a Service Provider for the given interface/class (SPI).