@Internal public class DefaultBeanResolutionContext extends LinkedHashMap<String,Object> implements BeanResolutionContext
BeanResolutionContext interface.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>BeanResolutionContext.Path, BeanResolutionContext.Segment| Constructor and Description |
|---|
DefaultBeanResolutionContext(BeanContext context,
BeanDefinition rootDefinition) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addInFlightBean(BeanIdentifier beanIdentifier,
T instance)
Adds a bean that is created as part of the resolution.
|
<T> Optional<T> |
get(CharSequence name,
ArgumentConversionContext<T> conversionContext)
Resolve the given property for the given name.
|
BeanContext |
getContext() |
<T> T |
getInFlightBean(BeanIdentifier beanIdentifier)
Obtains an inflight bean for the given identifier.
|
BeanResolutionContext.Path |
getPath() |
BeanDefinition |
getRootDefinition() |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesget, get, get@Internal public DefaultBeanResolutionContext(BeanContext context, BeanDefinition rootDefinition)
context - The bean contextrootDefinition - The bean root definitionpublic BeanContext getContext()
getContext in interface BeanResolutionContextpublic BeanDefinition getRootDefinition()
getRootDefinition in interface BeanResolutionContextpublic BeanResolutionContext.Path getPath()
getPath in interface BeanResolutionContextpublic <T> void addInFlightBean(BeanIdentifier beanIdentifier, T instance)
BeanResolutionContextBeanContext.inject(Object)addInFlightBean in interface BeanResolutionContextT - THe instance typebeanIdentifier - The bean identifierinstance - The instance@Nullable public <T> T getInFlightBean(BeanIdentifier beanIdentifier)
BeanResolutionContextgetInFlightBean in interface BeanResolutionContextT - The bean typebeanIdentifier - The bean identifierpublic <T> Optional<T> get(CharSequence name, ArgumentConversionContext<T> conversionContext)
ValueResolverget in interface ValueResolver<CharSequence>T - The concrete typename - The nameconversionContext - The conversion context