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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMatchableBinding.Matching<D extends MatchableBinding>Matching object that represents the level of a match between two bindings.protected static classMatchableBinding.MatchingVisitor<D extends MatchableBinding<?,D>> protected static enumInternal granularity of a Matching. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract MatchableBinding.MatchLevelprotected MatchableBinding.Matching<D>matches(org.glassfish.jersey.innate.inject.InternalBinding<?, ?> other) protected MatchableBinding.MatchingmatchesById(org.glassfish.jersey.innate.inject.InternalBinding<?, ?> other) matchesContracts(org.glassfish.jersey.innate.inject.InternalBinding<?, ?> other) Return a Matching object that represents comparison between contracts of this binding and a given binding.abstract MatchableBinding.Matching<MatchableBinding>matching(org.glassfish.jersey.innate.inject.InternalBinding other) Visitor version of matchesMethods inherited from class org.glassfish.jersey.innate.inject.InternalBinding
contractsAsString, forClient, getId, id, isForClient, toStringMethods inherited from class org.glassfish.jersey.internal.inject.Binding
addAlias, analyzeWith, asType, getAliases, getAnalyzer, getContracts, getImplementationType, getName, getQualifiers, getRank, getScope, in, isProxiable, isProxiedForSameScope, named, proxy, proxyForSameScope, qualifiedBy, ranked, to, to, to, to
-
Field Details
-
visitor
-
-
Constructor Details
-
MatchableBinding
public MatchableBinding()
-
-
Method Details
-
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:
-