@Internal public abstract class AbstractBeanResolutionContext extends java.lang.Object implements BeanResolutionContext
BeanResolutionContext
interface.BeanResolutionContext.Path, BeanResolutionContext.Segment<T>
Constructor and Description |
---|
AbstractBeanResolutionContext(BeanContext context,
BeanDefinition rootDefinition) |
Modifier and Type | Method and Description |
---|---|
<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.lang.Object |
getAttribute(java.lang.CharSequence key) |
BeanContext |
getContext() |
Qualifier<?> |
getCurrentQualifier() |
BeanResolutionContext.Path |
getPath() |
BeanDefinition |
getRootDefinition() |
void |
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, wait
addInFlightBean, close, getInFlightBean, removeInFlightBean
get, get
@Internal public AbstractBeanResolutionContext(BeanContext context, BeanDefinition rootDefinition)
context
- The bean contextrootDefinition
- The bean root definitionpublic final BeanContext getContext()
getContext
in interface BeanResolutionContext
public final BeanDefinition getRootDefinition()
getRootDefinition
in interface BeanResolutionContext
public final BeanResolutionContext.Path getPath()
getPath
in interface BeanResolutionContext
public final java.lang.Object setAttribute(java.lang.CharSequence key, java.lang.Object value)
BeanResolutionContext
setAttribute
in interface BeanResolutionContext
key
- The keyvalue
- The valuepublic final java.lang.Object getAttribute(java.lang.CharSequence key)
getAttribute
in interface BeanResolutionContext
key
- The keypublic final void removeAttribute(java.lang.CharSequence key)
BeanResolutionContext
removeAttribute
in interface BeanResolutionContext
key
- the key@Nullable public Qualifier<?> getCurrentQualifier()
getCurrentQualifier
in interface BeanResolutionContext
public void setCurrentQualifier(@Nullable Qualifier<?> qualifier)
BeanResolutionContext
setCurrentQualifier
in interface BeanResolutionContext
qualifier
- The qualifierpublic <T> java.util.Optional<T> get(java.lang.CharSequence name, ArgumentConversionContext<T> conversionContext)
ValueResolver
get
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)
ValueResolver
get
in interface ValueResolver<java.lang.CharSequence>
T
- The concrete typename
- The namerequiredType
- The required type