Class InitializableSupplierInstanceBinding<T>
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,U>
org.glassfish.jersey.inject.weld.internal.inject.InitializableBinding<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 InitializableBinding<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.MatchingVisitor<D extends MatchableBinding<?,D>>, MatchableBinding.MatchLevel -
Field Summary
Fields inherited from class org.glassfish.jersey.inject.weld.internal.inject.MatchableBinding
visitor -
Constructor Summary
ConstructorsConstructorDescriptionInitializableSupplierInstanceBinding(Supplier<T> supplier, RuntimeType runtimeType) Creates a supplier as an instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected MatchableBinding.MatchLevelclone()static <T> InitializableSupplierInstanceBinding<T>from(org.glassfish.jersey.innate.inject.SupplierInstanceBinding<T> binding, RuntimeType runtimeType) Gets supplier's instance.voidbooleanisInit()matching(org.glassfish.jersey.innate.inject.InternalBinding other) Visitor version of matchesMethods inherited from class org.glassfish.jersey.inject.weld.internal.inject.MatchableBinding
matches, matchesById, matchesContractsMethods 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
-
Constructor Details
-
InitializableSupplierInstanceBinding
Creates a supplier as an instance.- Parameters:
supplier- service's instance.runtimeType-
-
-
Method Details
-
init
-
isInit
public boolean isInit()- Specified by:
isInitin classInitializableBinding<Supplier<T>,InitializableSupplierInstanceBinding<T>>
-
getRuntimeType
- Specified by:
getRuntimeTypein classInitializableBinding<Supplier<T>,InitializableSupplierInstanceBinding<T>>
-
getSupplier
Gets supplier's instance.- Returns:
- supplier's instance.
-
getOriginalSupplier
-
from
public static <T> InitializableSupplierInstanceBinding<T> from(org.glassfish.jersey.innate.inject.SupplierInstanceBinding<T> binding, RuntimeType runtimeType) -
clone
-
matches
public MatchableBinding.Matching matches(org.glassfish.jersey.innate.inject.SupplierInstanceBinding<T> other) -
matches
-
bestMatchLevel
- Specified by:
bestMatchLevelin classMatchableBinding<Supplier<T>,InitializableSupplierInstanceBinding<T>>
-
matching
public MatchableBinding.Matching<MatchableBinding> matching(org.glassfish.jersey.innate.inject.InternalBinding other) Description copied from class:MatchableBindingVisitor version of matches- Specified by:
matchingin classMatchableBinding<Supplier<T>,InitializableSupplierInstanceBinding<T>> - Returns:
-