T
- type of the bean described by this injection binding.public class InstanceBinding<T> extends Binding<T,InstanceBinding<T>>
Constructor and Description |
---|
InstanceBinding(T service)
Creates a service as an instance.
|
InstanceBinding(T service,
java.lang.reflect.Type contractType)
Creates a service as an instance.
|
Modifier and Type | Method and Description |
---|---|
T |
getService()
Gets service' class.
|
addAlias, analyzeWith, asType, getAliases, getAnalyzer, getContracts, getImplementationType, getName, getQualifiers, getRank, getScope, in, isProxiable, isProxiedForSameScope, named, proxy, proxyForSameScope, qualifiedBy, ranked, to, to, to, to
private final T service
InstanceBinding(T service)
service
- service's instance.InstanceBinding(T service, java.lang.reflect.Type contractType)
service
- service's instance.contractType
- service's contractType.public T getService()