|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.spi.util.ServiceLoader
public final class ServiceLoader
Loads service implementations from the classpath that defines the service class.
| Method Summary | ||
|---|---|---|
static
|
loadService(Class<T> serviceClass)
Loads the first of a list of service implementations defined in META-INF/services/${serviceClass} |
|
static
|
loadServices(Class<T> serviceClass)
Loads a list of service implementations defined in META-INF/services/${serviceClass} |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> List<T> loadServices(Class<T> serviceClass)
serviceClass - The interface that is implemented by all loaded services
public static <T> T loadService(Class<T> serviceClass)
serviceClass - The interface that is implemented by all loaded services
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||