Class InitializableInstanceBinding<T>
- java.lang.Object
-
- org.glassfish.jersey.internal.inject.Binding<T,D>
-
- org.glassfish.jersey.inject.weld.internal.inject.MatchableBinding<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 MatchableBinding<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.MatchLevel
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedInitializableInstanceBinding(T service)Creates a service as an instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MatchableBinding.MatchLevelbestMatchLevel()InitializableInstanceBinding<T>clone()static <T> InitializableInstanceBinding<T>from(InstanceBinding<T> instanceBinding)Class<T>getImplementationType()Gets service's type.TgetService()Gets service' class.voidinit(T service)booleanisInit()MatchableBinding.Matching<InitializableInstanceBinding<T>>matches(Binding other)-
Methods inherited from class org.glassfish.jersey.inject.weld.internal.inject.MatchableBinding
matchesContracts
-
Methods inherited from class org.glassfish.jersey.internal.inject.Binding
addAlias, analyzeWith, getAliases, getAnalyzer, getContracts, getName, getQualifiers, getRank, getScope, in, isProxiable, isProxiedForSameScope, named, proxy, proxyForSameScope, qualifiedBy, ranked, to, to, to, to
-
-
-
-
Field Detail
-
service
protected T service
-
-
Constructor Detail
-
InitializableInstanceBinding
protected InitializableInstanceBinding(T service)
Creates a service as an instance.- Parameters:
service- service's instance.
-
-
Method Detail
-
getService
public T getService()
Gets service' class.- Returns:
- service's class.
-
getImplementationType
public Class<T> getImplementationType()
Gets service's type.- Overrides:
getImplementationTypein classBinding<T,InitializableInstanceBinding<T>>- Returns:
- service's type.
-
init
public void init(T service)
-
isInit
public boolean isInit()
-
matches
public MatchableBinding.Matching<InitializableInstanceBinding<T>> matches(Binding other)
- Overrides:
matchesin classMatchableBinding<T,InitializableInstanceBinding<T>>
-
clone
public InitializableInstanceBinding<T> clone()
-
from
public static <T> InitializableInstanceBinding<T> from(InstanceBinding<T> instanceBinding)
-
bestMatchLevel
protected MatchableBinding.MatchLevel bestMatchLevel()
- Specified by:
bestMatchLevelin classMatchableBinding<T,InitializableInstanceBinding<T>>
-
-