Class MatchableBinding<T,D extends MatchableBinding>
- java.lang.Object
-
- org.glassfish.jersey.internal.inject.Binding<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:
InitializableInstanceBinding,InitializableSupplierInstanceBinding
public abstract class MatchableBinding<T,D extends MatchableBinding> extends Binding<T,D>
A Binding to be able to be compared and matched in the runtime to be properly initialized.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMatchableBinding.Matching<D extends MatchableBinding>Matching object that represents the level of a match between two bindings.protected static classMatchableBinding.MatchLevelInternal granularity of a Matching.
-
Constructor Summary
Constructors Constructor Description MatchableBinding()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract MatchableBinding.MatchLevelbestMatchLevel()protected MatchableBinding.Matching<D>matches(Binding<?,?> other)MatchableBinding.Matching<D>matchesContracts(Binding<?,?> other)Return a Matching object that represents comparison between contracts of this binding and a given binding.-
Methods inherited from class org.glassfish.jersey.internal.inject.Binding
addAlias, analyzeWith, getAliases, getAnalyzer, getContracts, getImplementationType, getName, getQualifiers, getRank, getScope, in, isProxiable, isProxiedForSameScope, named, proxy, proxyForSameScope, qualifiedBy, ranked, to, to, to, to
-
-
-
-
Method Detail
-
bestMatchLevel
protected abstract MatchableBinding.MatchLevel bestMatchLevel()
-
matches
protected MatchableBinding.Matching<D> matches(Binding<?,?> other)
-
matchesContracts
public MatchableBinding.Matching<D> matchesContracts(Binding<?,?> 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:
-
-