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