@Internal public abstract class AbstractBeanResolutionContext extends Object implements BeanResolutionContext
BeanResolutionContext interface.BeanResolutionContext.Path, BeanResolutionContext.Segment| Constructor and Description |
|---|
AbstractBeanResolutionContext(BeanContext context,
BeanDefinition rootDefinition) |
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<T> |
get(CharSequence name,
ArgumentConversionContext<T> conversionContext)
Resolve the given property for the given name.
|
<T> Optional<T> |
get(CharSequence name,
Class<T> requiredType)
Resolve the given property for the given name.
|
Object |
getAttribute(CharSequence key) |
BeanContext |
getContext() |
Qualifier<?> |
getCurrentQualifier() |
BeanResolutionContext.Path |
getPath() |
BeanDefinition |
getRootDefinition() |
void |
removeAttribute(CharSequence key)
Remove the attribute for the given key.
|
Object |
setAttribute(CharSequence key,
Object value)
Store a value within the context.
|
void |
setCurrentQualifier(Qualifier<?> qualifier)
Sets the current qualifier.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddInFlightBean, close, getInFlightBean, removeInFlightBeanget, get@Internal public AbstractBeanResolutionContext(BeanContext context, BeanDefinition rootDefinition)
context - The bean contextrootDefinition - The bean root definitionpublic final BeanContext getContext()
getContext in interface BeanResolutionContextpublic final BeanDefinition getRootDefinition()
getRootDefinition in interface BeanResolutionContextpublic final BeanResolutionContext.Path getPath()
getPath in interface BeanResolutionContextpublic final Object setAttribute(CharSequence key, Object value)
BeanResolutionContextsetAttribute in interface BeanResolutionContextkey - The keyvalue - The valuepublic final Object getAttribute(CharSequence key)
getAttribute in interface BeanResolutionContextkey - The keypublic final void removeAttribute(CharSequence key)
BeanResolutionContextremoveAttribute in interface BeanResolutionContextkey - the key@Nullable public Qualifier<?> getCurrentQualifier()
getCurrentQualifier in interface BeanResolutionContextpublic void setCurrentQualifier(@Nullable Qualifier<?> qualifier)
BeanResolutionContextsetCurrentQualifier in interface BeanResolutionContextqualifier - The qualifierpublic <T> Optional<T> get(CharSequence name, ArgumentConversionContext<T> conversionContext)
ValueResolverget in interface ValueResolver<CharSequence>T - The concrete typename - The nameconversionContext - The conversion contextpublic <T> Optional<T> get(CharSequence name, Class<T> requiredType)
ValueResolverget in interface ValueResolver<CharSequence>T - The concrete typename - The namerequiredType - The required type