Class InitializableInstanceBinding<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<T,InitializableInstanceBinding<T>>
org.glassfish.jersey.inject.weld.internal.inject.InitializableInstanceBinding<T>
- Type Parameters:
T- Type of the service described by this injection binding.
- All Implemented Interfaces:
Cloneable
public class InitializableInstanceBinding<T>
extends InitializableBinding<T,InitializableInstanceBinding<T>>
implements Cloneable
Injection binding description of a bean bound directly as a specific instance to be created in a 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
FieldsFields inherited from class org.glassfish.jersey.inject.weld.internal.inject.MatchableBinding
visitor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInitializableInstanceBinding(T service, RuntimeType runtimeType) Creates a service as an instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected MatchableBinding.MatchLevelclone()booleanstatic <T> InitializableInstanceBinding<T>from(org.glassfish.jersey.innate.inject.InstanceBinding<T> instanceBinding, RuntimeType runtimeType) Gets service's type.Gets service' class.inthashCode()voidbooleanisInit()matches(org.glassfish.jersey.innate.inject.InternalBinding other) matching(org.glassfish.jersey.innate.inject.InternalBinding other) Visitor version of matchesMethods inherited from class org.glassfish.jersey.inject.weld.internal.inject.MatchableBinding
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, getName, getQualifiers, getRank, getScope, in, isProxiable, isProxiedForSameScope, named, proxy, proxyForSameScope, qualifiedBy, ranked, to, to, to, to
-
Field Details
-
service
-
-
Constructor Details
-
InitializableInstanceBinding
Creates a service as an instance.- Parameters:
service- service's instance.
-
-
Method Details
-
getService
Gets service' class.- Returns:
- service's class.
-
getImplementationType
Gets service's type.- Overrides:
getImplementationTypein classBinding<T,InitializableInstanceBinding<T>> - Returns:
- service's type.
-
init
-
isInit
public boolean isInit()- Specified by:
isInitin classInitializableBinding<T,InitializableInstanceBinding<T>>
-
getRuntimeType
- Specified by:
getRuntimeTypein classInitializableBinding<T,InitializableInstanceBinding<T>>
-
matches
public MatchableBinding.Matching<InitializableInstanceBinding<T>> matches(org.glassfish.jersey.innate.inject.InternalBinding other) - Overrides:
matchesin classMatchableBinding<T,InitializableInstanceBinding<T>>
-
clone
-
from
public static <T> InitializableInstanceBinding<T> from(org.glassfish.jersey.innate.inject.InstanceBinding<T> instanceBinding, RuntimeType runtimeType) -
bestMatchLevel
- Specified by:
bestMatchLevelin classMatchableBinding<T,InitializableInstanceBinding<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<T,InitializableInstanceBinding<T>> - Returns:
-
hashCode
public int hashCode() -
equals
-