Class AliasBinding

java.lang.Object
org.glassfish.jersey.internal.inject.AliasBinding

public class AliasBinding extends Object
Injection binding description used to describe the aliases to main Binding.
Author:
Petr Bouda
  • Method Details

    • getContract

      public Class<?> getContract()
      Gets binding's contract.
      Returns:
      binding's contract.
    • getScope

      public Optional<String> getScope()
      Gets binding's optional scope.
      Returns:
      binding's scope, if set explicitly.
    • in

      public AliasBinding in(String scope)
      Sets the binding's scope.
      Parameters:
      scope - binding's scope.
      Returns:
      current instance.
    • getRank

      public OptionalInt getRank()
      Gets binding's optional rank.
      Returns:
      binding's rank, if set explicitly.
    • ranked

      public AliasBinding ranked(int rank)
      Sets the binding's rank.
      Parameters:
      rank - binding's rank.
      Returns:
      current instance.
    • getQualifiers

      public Set<Annotation> getQualifiers()
      Gets binding's qualifiers.
      Returns:
      binding's qualifiers
    • qualifiedBy

      public AliasBinding qualifiedBy(Annotation annotation)
      Adds a new binding's qualifier.
      Parameters:
      annotation - binding's qualifier.
      Returns:
      current instance.