public class GuiceServiceInstance extends Object implements org.testifyproject.ServiceInstance
ServiceInstance spi contract. This class
provides the ability to work with Google Guice Injector to create, locate, and manage
services.| Constructor and Description |
|---|
GuiceServiceInstance(com.google.inject.Injector injector) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getContext() |
Set<Class<? extends Annotation>> |
getCustomQualifiers() |
Set<Class<? extends Annotation>> |
getNameQualifers() |
<T> T |
getService(Type type,
Annotation... qualifiers) |
<T> T |
getService(Type type,
String name) |
void |
inject(Object instance) |
Boolean |
isRunning() |
public GuiceServiceInstance(com.google.inject.Injector injector)
public Boolean isRunning()
isRunning in interface org.testifyproject.ServiceInstancepublic void inject(Object instance)
inject in interface org.testifyproject.ServiceInstancepublic <T> T getContext()
getContext in interface org.testifyproject.ServiceInstancepublic <T> T getService(Type type, String name)
getService in interface org.testifyproject.ServiceInstancepublic <T> T getService(Type type, Annotation... qualifiers)
getService in interface org.testifyproject.ServiceInstancepublic Set<Class<? extends Annotation>> getNameQualifers()
getNameQualifers in interface org.testifyproject.ServiceInstancepublic Set<Class<? extends Annotation>> getCustomQualifiers()
getCustomQualifiers in interface org.testifyproject.ServiceInstanceCopyright © 2016–2018 Testify Project. All rights reserved.