T
- type of the bean described by this injection binding.D
- concrete injection binding implementation type.public abstract class Binding<T,D extends Binding>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Set<AliasBinding> |
aliases |
private java.lang.String |
analyzer |
private java.util.Set<java.lang.reflect.Type> |
contracts |
private java.lang.Class<T> |
implementationType |
private java.lang.String |
name |
private java.lang.Boolean |
proxiable |
private java.lang.Boolean |
proxyForSameScope |
private java.util.Set<java.lang.annotation.Annotation> |
qualifiers |
private java.lang.Integer |
ranked |
private java.lang.Class<? extends java.lang.annotation.Annotation> |
scope |
Constructor and Description |
---|
Binding() |
Modifier and Type | Method and Description |
---|---|
AliasBinding |
addAlias(java.lang.Class<?> contract)
Adds service's alias.
|
D |
analyzeWith(java.lang.String analyzer)
Adds service's analyzer.
|
(package private) D |
asType(java.lang.Class type)
Adds service's type.
|
java.util.Set<AliasBinding> |
getAliases()
Gets service's aliases.
|
java.lang.String |
getAnalyzer()
Gets service's analyzer.
|
java.util.Set<java.lang.reflect.Type> |
getContracts()
Gets service's contracts.
|
java.lang.Class<T> |
getImplementationType()
Gets service's type.
|
java.lang.String |
getName()
Gets service's name.
|
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers()
Gets service's qualifiers.
|
java.lang.Integer |
getRank()
Gets rank of the service.
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Gets service's scope.
|
D |
in(java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation)
Adds service's scope.
|
java.lang.Boolean |
isProxiable()
Gets information whether the service is proxiable.
|
java.lang.Boolean |
isProxiedForSameScope()
Gets information whether the service creates the proxy for the same scope.
|
D |
named(java.lang.String name)
Adds service's name.
|
D |
proxy(boolean proxiable)
Adds information about proxy creation.
|
D |
proxyForSameScope(boolean proxyForSameScope)
Adds information about proxy creation when the service is in the same scope.
|
D |
qualifiedBy(java.lang.annotation.Annotation annotation)
Adds service's qualifier.
|
void |
ranked(int rank)
Adds service's rank.
|
D |
to(java.lang.Class<? super T> contract)
Adds service's contract.
|
D |
to(java.util.Collection<java.lang.Class<? super T>> contracts)
Adds service's contracts.
|
D |
to(javax.ws.rs.core.GenericType<?> contract)
Adds service's contract.
|
D |
to(java.lang.reflect.Type contract)
Adds service's contract.
|
private final java.util.Set<java.lang.reflect.Type> contracts
private final java.util.Set<java.lang.annotation.Annotation> qualifiers
private final java.util.Set<AliasBinding> aliases
private java.lang.Class<? extends java.lang.annotation.Annotation> scope
private java.lang.String name
private java.lang.Class<T> implementationType
private java.lang.String analyzer
private java.lang.Boolean proxiable
private java.lang.Boolean proxyForSameScope
private java.lang.Integer ranked
public java.lang.Boolean isProxiable()
true
if the service is proxiable.public java.lang.Boolean isProxiedForSameScope()
true
if the service creates the proxy for the same scop.public java.lang.Integer getRank()
public java.util.Set<java.lang.reflect.Type> getContracts()
public java.util.Set<java.lang.annotation.Annotation> getQualifiers()
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
public java.lang.String getName()
public java.lang.Class<T> getImplementationType()
public java.lang.String getAnalyzer()
public java.util.Set<AliasBinding> getAliases()
public D analyzeWith(java.lang.String analyzer)
public D to(java.util.Collection<java.lang.Class<? super T>> contracts)
public D to(java.lang.Class<? super T> contract)
public D to(javax.ws.rs.core.GenericType<?> contract)
public D to(java.lang.reflect.Type contract)
public D qualifiedBy(java.lang.annotation.Annotation annotation)
public D in(java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation)
public D named(java.lang.String name)
public AliasBinding addAlias(java.lang.Class<?> contract)
contract
- contract of the alias.public D proxy(boolean proxiable)
public D proxyForSameScope(boolean proxyForSameScope)
public void ranked(int rank)
D asType(java.lang.Class type)