@Internal public final class DefaultBeanResolutionContext extends AbstractBeanResolutionContext
BeanResolutionContext.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.
|
void |
close() |
<T> T |
getInFlightBean(BeanIdentifier beanIdentifier)
Obtains an inflight bean for the given identifier.
|
void |
nest()
Trigger the next nested context state.
|
get, get, getAttribute, getContext, getCurrentQualifier, getPath, getRootDefinition, removeAttribute, setAttribute, setCurrentQualifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, getpublic DefaultBeanResolutionContext(BeanContext context, BeanDefinition rootDefinition)
context - The bean contextrootDefinition - The bean root definitionpublic void close()
public void nest()
BeanResolutionContextpublic <T> void addInFlightBean(BeanIdentifier beanIdentifier, T instance)
BeanResolutionContextBeanContext.inject(Object)T - THe instance typebeanIdentifier - The bean identifierinstance - The instance@Nullable public <T> T getInFlightBean(BeanIdentifier beanIdentifier)
BeanResolutionContextPostConstruct method that also triggers bean resolution of the same bean.T - The bean typebeanIdentifier - The bean identifier