|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.arquillian.core.impl.loadable.ServiceRegistryLoader
public class ServiceRegistryLoader
MixedServiceLoader
Constructor Summary | |
---|---|
ServiceRegistryLoader(Injector injector,
ServiceRegistry registry)
|
Method Summary | ||
---|---|---|
|
all(Class<T> serviceClass)
Load multiple service implementations. |
|
|
onlyOne(Class<T> serviceClass)
Load a single service implementation. |
|
|
onlyOne(Class<T> serviceClass,
Class<? extends T> defaultServiceClass)
Load a single service implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceRegistryLoader(Injector injector, ServiceRegistry registry)
Method Detail |
---|
public <T> Collection<T> all(Class<T> serviceClass)
ServiceLoader
all
in interface ServiceLoader
serviceClass
- The service interface to load a implementations for
Collection
of all instances of serviceClasspublic <T> T onlyOne(Class<T> serviceClass)
ServiceLoader
IllegalStateException
if multiple instances of serviceClass found.
onlyOne
in interface ServiceLoader
serviceClass
- The service interface to load a implementation for
public <T> T onlyOne(Class<T> serviceClass, Class<? extends T> defaultServiceClass)
ServiceLoader
onlyOne
in interface ServiceLoader
serviceClass
- The service interface to load a implementation fordefaultServiceClass
- If no other implementations found, create a instance of this class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |