Class InitializableSupplierInstanceBinding<T>
- java.lang.Object
-
- org.glassfish.jersey.internal.inject.Binding<T,D>
-
- org.glassfish.jersey.inject.weld.internal.inject.MatchableBinding<Supplier<T>,InitializableSupplierInstanceBinding<T>>
-
- org.glassfish.jersey.inject.weld.internal.inject.InitializableSupplierInstanceBinding<T>
-
- Type Parameters:
T- Type of the supplied service described by this injection binding.
- All Implemented Interfaces:
Cloneable
public class InitializableSupplierInstanceBinding<T> extends MatchableBinding<Supplier<T>,InitializableSupplierInstanceBinding<T>> implements Cloneable
Supplier instance binding to be created in the pre-initialization phase and initialized in runtime.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.glassfish.jersey.inject.weld.internal.inject.MatchableBinding
MatchableBinding.Matching<D extends MatchableBinding>, MatchableBinding.MatchLevel
-
-
Constructor Summary
Constructors Constructor Description InitializableSupplierInstanceBinding(Supplier<T> supplier)Creates a supplier as an instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MatchableBinding.MatchLevelbestMatchLevel()InitializableSupplierInstanceBindingclone()static <T> InitializableSupplierInstanceBinding<T>from(SupplierInstanceBinding<T> binding)Supplier<T>getOriginalSupplier()Supplier<T>getSupplier()Gets supplier's instance.voidinit(Supplier<T> supplier)booleanisInit()MatchableBinding.Matchingmatches(InitializableSupplierInstanceBinding<T> other)MatchableBinding.Matchingmatches(SupplierInstanceBinding<T> other)-
Methods inherited from class org.glassfish.jersey.inject.weld.internal.inject.MatchableBinding
matches, matchesContracts
-
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
-
isInit
public boolean isInit()
-
getSupplier
public Supplier<T> getSupplier()
Gets supplier's instance.- Returns:
- supplier's instance.
-
from
public static <T> InitializableSupplierInstanceBinding<T> from(SupplierInstanceBinding<T> binding)
-
clone
public InitializableSupplierInstanceBinding clone()
-
matches
public MatchableBinding.Matching matches(SupplierInstanceBinding<T> other)
-
matches
public MatchableBinding.Matching matches(InitializableSupplierInstanceBinding<T> other)
-
bestMatchLevel
protected MatchableBinding.MatchLevel bestMatchLevel()
- Specified by:
bestMatchLevelin classMatchableBinding<Supplier<T>,InitializableSupplierInstanceBinding<T>>
-
-