Class MatchableBinding<T,D extends MatchableBinding>

java.lang.Object
org.glassfish.jersey.internal.inject.Binding<T,D>
org.glassfish.jersey.innate.inject.InternalBinding<T,D>
org.glassfish.jersey.inject.weld.internal.inject.MatchableBinding<T,D>
Type Parameters:
T - Type of the bean described by this injection binding.
D - Concrete injection binding implementation type.
Direct Known Subclasses:
InitializableBinding, InstanceListBinding

public abstract class MatchableBinding<T,D extends MatchableBinding> extends org.glassfish.jersey.innate.inject.InternalBinding<T,D>
A Binding to be able to be compared and matched in the runtime to be properly initialized.
  • Field Details

  • Constructor Details

    • MatchableBinding

      public MatchableBinding()
  • Method Details

    • bestMatchLevel

      protected abstract MatchableBinding.MatchLevel bestMatchLevel()
    • matching

      public abstract MatchableBinding.Matching<MatchableBinding> matching(org.glassfish.jersey.innate.inject.InternalBinding other)
      Visitor version of matches
      Parameters:
      other -
      Returns:
    • matches

      protected MatchableBinding.Matching<D> matches(org.glassfish.jersey.innate.inject.InternalBinding<?,?> other)
    • matchesById

      protected MatchableBinding.Matching matchesById(org.glassfish.jersey.innate.inject.InternalBinding<?,?> other)
    • matchesContracts

      public MatchableBinding.Matching<D> matchesContracts(org.glassfish.jersey.innate.inject.InternalBinding<?,?> other)
      Return a Matching object that represents comparison between contracts of this binding and a given binding. The result contains a reference to this binding.
      Parameters:
      other -
      Returns: