public class ServiceRegistryLoader extends Object implements ServiceLoader
Constructor and Description |
---|
ServiceRegistryLoader(Injector injector,
ServiceRegistry registry) |
Modifier and Type | Method and Description |
---|---|
<T> Collection<T> |
all(Class<T> serviceClass) |
<T> T |
onlyOne(Class<T> serviceClass) |
<T> T |
onlyOne(Class<T> serviceClass,
Class<? extends T> defaultServiceClass) |
public ServiceRegistryLoader(Injector injector, ServiceRegistry registry)
public <T> Collection<T> all(Class<T> serviceClass)
all
in interface ServiceLoader
public <T> T onlyOne(Class<T> serviceClass)
onlyOne
in interface ServiceLoader
public <T> T onlyOne(Class<T> serviceClass, Class<? extends T> defaultServiceClass)
onlyOne
in interface ServiceLoader
Copyright © 2018 JBoss by Red Hat. All rights reserved.