org.foray.common
Class ClassService

java.lang.Object
  extended by org.foray.common.ClassService

public final class ClassService
extends Object

This class loads services present in the class path. The code was adapted from org.apache.batik.util. It probably does what sun.misc.Service does, but that should not be relied on. Hopefully it will be part of standard jdk sometime.


Method Summary
static List<String> providers(Class<?> cls)
          Provides an enumeration of the services in the class path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

providers

public static List<String> providers(Class<?> cls)
Provides an enumeration of the services in the class path.

Parameters:
cls - The class whose class loader should be used to find the services, or null if the system class loader should be used.
Returns:
A List of the services in the class path.


Copyright © 2017. All rights reserved.