@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, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
get, get, get
@Internal public DefaultBeanResolutionContext(BeanContext context, BeanDefinition rootDefinition)
context
- The bean contextrootDefinition
- The bean root definitionpublic BeanContext getContext()
getContext
in interface BeanResolutionContext
public BeanDefinition getRootDefinition()
getRootDefinition
in interface BeanResolutionContext
public BeanResolutionContext.Path getPath()
getPath
in interface BeanResolutionContext
public <T> void addInFlightBean(BeanIdentifier beanIdentifier, T instance)
BeanResolutionContext
BeanContext.inject(Object)
addInFlightBean
in interface BeanResolutionContext
T
- THe instance typebeanIdentifier
- The bean identifierinstance
- The instance@Nullable public <T> T getInFlightBean(BeanIdentifier beanIdentifier)
BeanResolutionContext
getInFlightBean
in interface BeanResolutionContext
T
- The bean typebeanIdentifier
- The bean identifierpublic <T> Optional<T> get(CharSequence name, ArgumentConversionContext<T> conversionContext)
ValueResolver
get
in interface ValueResolver<CharSequence>
T
- The concrete typename
- The nameconversionContext
- The conversion context