|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.richfaces.application.ServiceLoader
public final class ServiceLoader
This class loads services from files placed to the META-INF/services in classpath.
Method Summary | ||
---|---|---|
static
|
loadService(Class<S> serviceClass,
Class<? extends S> defaultImplementation)
|
|
static
|
loadServiceClasses(Class<S> serviceClass)
Load service implementation classes. |
|
static
|
loadServices(Class<S> serviceClass)
Load and instantiate all service implementations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <S> Collection<S> loadServices(Class<S> serviceClass) throws org.richfaces.application.ServiceException
Load and instantiate all service implementations.
S
- serviceClass
-
ServiceException
public static <S> S loadService(Class<S> serviceClass, Class<? extends S> defaultImplementation)
public static <S> Collection<Class<? extends S>> loadServiceClasses(Class<S> serviceClass) throws org.richfaces.application.ServiceException
Load service implementation classes.
S
- serviceClass
-
ServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |