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 Object
Constructor and Description |
---|
Binding() |
Modifier and Type | Method and Description |
---|---|
AliasBinding |
addAlias(Class<?> contract)
Adds service's alias.
|
D |
analyzeWith(String analyzer)
Adds service's analyzer.
|
Set<AliasBinding> |
getAliases()
Gets service's aliases.
|
String |
getAnalyzer()
Gets service's analyzer.
|
Set<Type> |
getContracts()
Gets service's contracts.
|
Class<T> |
getImplementationType()
Gets service's type.
|
String |
getName()
Gets service's name.
|
Set<Annotation> |
getQualifiers()
Gets service's qualifiers.
|
Integer |
getRank()
Gets rank of the service.
|
Class<? extends Annotation> |
getScope()
Gets service's scope.
|
D |
in(Class<? extends Annotation> scopeAnnotation)
Adds service's scope.
|
Boolean |
isProxiable()
Gets information whether the service is proxiable.
|
Boolean |
isProxiedForSameScope()
Gets information whether the service creates the proxy for the same scope.
|
D |
named(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(Annotation annotation)
Adds service's qualifier.
|
void |
ranked(int rank)
Adds service's rank.
|
D |
to(Class<? super T> contract)
Adds service's contract.
|
D |
to(Collection<Class<? super T>> contracts)
Adds service's contracts.
|
D |
to(GenericType<?> contract)
Adds service's contract.
|
D |
to(Type contract)
Adds service's contract.
|
public Boolean isProxiable()
true
if the service is proxiable.public Boolean isProxiedForSameScope()
true
if the service creates the proxy for the same scop.public Integer getRank()
public Set<Type> getContracts()
public Set<Annotation> getQualifiers()
public Class<? extends Annotation> getScope()
public String getName()
public Class<T> getImplementationType()
public String getAnalyzer()
public Set<AliasBinding> getAliases()
public D analyzeWith(String analyzer)
public D to(Collection<Class<? super T>> contracts)
public D to(GenericType<?> contract)
public D qualifiedBy(Annotation annotation)
public D in(Class<? extends Annotation> scopeAnnotation)
public AliasBinding addAlias(Class<?> contract)
contract
- contract of the alias.public D proxy(boolean proxiable)
public D proxyForSameScope(boolean proxyForSameScope)
public void ranked(int rank)
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.