Modifier and Type | Method and Description |
---|---|
Class<?> |
getContract()
Gets binding's contract.
|
Set<Annotation> |
getQualifiers()
Gets binding's qualifiers.
|
OptionalInt |
getRank()
Gets binding's optional rank.
|
Optional<String> |
getScope()
Gets binding's optional scope.
|
AliasBinding |
in(String scope)
Sets the binding's scope.
|
AliasBinding |
qualifiedBy(Annotation annotation)
Adds a new binding's qualifier.
|
AliasBinding |
ranked(int rank)
Sets the binding's rank.
|
public Class<?> getContract()
public Optional<String> getScope()
public AliasBinding in(String scope)
scope
- binding's scope.public OptionalInt getRank()
public AliasBinding ranked(int rank)
rank
- binding's rank.public Set<Annotation> getQualifiers()
public AliasBinding qualifiedBy(Annotation annotation)
annotation
- binding's qualifier.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.