T - Type of the service described by this injection binding.public class InitializableInstanceBinding<T> extends MatchableBinding<T,InitializableInstanceBinding<T>> implements Cloneable
MatchableBinding.Matching<D extends MatchableBinding>, MatchableBinding.MatchLevel| Modifier | Constructor and Description |
|---|---|
protected |
InitializableInstanceBinding(T service)
Creates a service as an instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected MatchableBinding.MatchLevel |
bestMatchLevel() |
InitializableInstanceBinding<T> |
clone() |
static <T> InitializableInstanceBinding<T> |
from(InstanceBinding<T> instanceBinding) |
Class<T> |
getImplementationType()
Gets service's type.
|
T |
getService()
Gets service' class.
|
void |
init(T service) |
boolean |
isInit() |
MatchableBinding.Matching<InitializableInstanceBinding<T>> |
matches(Binding other) |
matchesContractsaddAlias, analyzeWith, getAliases, getAnalyzer, getContracts, getName, getQualifiers, getRank, getScope, in, isProxiable, isProxiedForSameScope, named, proxy, proxyForSameScope, qualifiedBy, ranked, to, to, to, toprotected T service
protected InitializableInstanceBinding(T service)
service - service's instance.public T getService()
public Class<T> getImplementationType()
getImplementationType in class Binding<T,InitializableInstanceBinding<T>>public void init(T service)
public boolean isInit()
public MatchableBinding.Matching<InitializableInstanceBinding<T>> matches(Binding other)
matches in class MatchableBinding<T,InitializableInstanceBinding<T>>public InitializableInstanceBinding<T> clone()
public static <T> InitializableInstanceBinding<T> from(InstanceBinding<T> instanceBinding)
protected MatchableBinding.MatchLevel bestMatchLevel()
bestMatchLevel in class MatchableBinding<T,InitializableInstanceBinding<T>>Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.