@Internal public abstract class AbstractBeanResolutionContext extends java.lang.Object implements BeanResolutionContext
BeanResolutionContext interface.| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractBeanResolutionContext.ConstructorArgumentSegment
A segment that represents a method argument.
|
static class |
AbstractBeanResolutionContext.ConstructorSegment
A segment that represents a constructor.
|
static class |
AbstractBeanResolutionContext.FieldSegment
A segment that represents a field.
|
static class |
AbstractBeanResolutionContext.MethodArgumentSegment
A segment that represents a method argument.
|
static class |
AbstractBeanResolutionContext.MethodSegment
A segment that represents a method.
|
BeanResolutionContext.Path, BeanResolutionContext.Segment<T>| Constructor and Description |
|---|
AbstractBeanResolutionContext(BeanContext context,
BeanDefinition rootDefinition) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addDependentBean(BeanIdentifier identifier,
BeanDefinition<T> definition,
T bean)
Adds a dependent bean to the resolution context.
|
<T> java.util.Optional<T> |
get(java.lang.CharSequence name,
ArgumentConversionContext<T> conversionContext)
Resolve the given property for the given name.
|
<T> java.util.Optional<T> |
get(java.lang.CharSequence name,
java.lang.Class<T> requiredType)
Resolve the given property for the given name.
|
java.util.List<BeanRegistration<?>> |
getAndResetDependentBeans() |
java.lang.Object |
getAttribute(java.lang.CharSequence key) |
BeanContext |
getContext() |
Qualifier<?> |
getCurrentQualifier() |
BeanResolutionContext.Path |
getPath() |
BeanDefinition |
getRootDefinition() |
java.lang.Object |
removeAttribute(java.lang.CharSequence key)
Remove the attribute for the given key.
|
java.lang.Object |
setAttribute(java.lang.CharSequence key,
java.lang.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 <T> void addDependentBean(BeanIdentifier identifier, BeanDefinition<T> definition, T bean)
BeanResolutionContextaddDependentBean in interface BeanResolutionContextT - The generic typeidentifier - The identifierdefinition - The bean definitionbean - The bean@NonNull public java.util.List<BeanRegistration<?>> getAndResetDependentBeans()
getAndResetDependentBeans in interface BeanResolutionContextpublic final BeanContext getContext()
getContext in interface BeanResolutionContextpublic final BeanDefinition getRootDefinition()
getRootDefinition in interface BeanResolutionContextpublic final BeanResolutionContext.Path getPath()
getPath in interface BeanResolutionContextpublic final java.lang.Object setAttribute(java.lang.CharSequence key,
java.lang.Object value)
BeanResolutionContextsetAttribute in interface BeanResolutionContextkey - The keyvalue - The valuepublic final java.lang.Object getAttribute(java.lang.CharSequence key)
getAttribute in interface BeanResolutionContextkey - The keypublic final java.lang.Object removeAttribute(java.lang.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> java.util.Optional<T> get(java.lang.CharSequence name,
ArgumentConversionContext<T> conversionContext)
ValueResolverget in interface ValueResolver<java.lang.CharSequence>T - The concrete typename - The nameconversionContext - The conversion contextpublic <T> java.util.Optional<T> get(java.lang.CharSequence name,
java.lang.Class<T> requiredType)
ValueResolverget in interface ValueResolver<java.lang.CharSequence>T - The concrete typename - The namerequiredType - The required type