BeanPostProcessor implementation that supplies the
ApplicationContext,
Environment,
StringValueResolver, or
ApplicationStartup
for the ApplicationContext to beans that implement the EnvironmentAware,
EmbeddedValueResolverAware, ResourceLoaderAware,
ApplicationEventPublisherAware, MessageSourceAware,
ApplicationStartupAware, and/or ApplicationContextAware interfaces.
Implemented interfaces are satisfied in the order in which they are mentioned above.
Application contexts will automatically register this with their underlying bean factory. Applications do not use this directly.
org.springframework.context.EnvironmentAware , org.springframework.context.EmbeddedValueResolverAware , org.springframework.context.ResourceLoaderAware , org.springframework.context.ApplicationEventPublisherAware , org.springframework.context.MessageSourceAware , org.springframework.context.ApplicationStartupAware , org.springframework.context.ApplicationContextAware , org.springframework.context.support.AbstractApplicationContext#refresh()
| Modifier and Type | Field and Description |
|---|---|
| private final ConfigurableApplicationContext | |
| private final StringValueResolver |
| Access | Constructor and Description |
|---|---|
| public | ApplicationContextAwareProcessor(ConfigurableApplicationContext applicationContext)
Create a new ApplicationContextAwareProcessor for the given context. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public Object | postProcessBeforeInitialization(Object
the new bean instance bean, String the name of the bean beanName)Overrides default org. Apply this |
| applicationContext | back to summary |
|---|---|
| private final ConfigurableApplicationContext applicationContext | |
| embeddedValueResolver | back to summary |
|---|---|
| private final StringValueResolver embeddedValueResolver | |
| ApplicationContextAwareProcessor | back to summary |
|---|---|
| public ApplicationContextAwareProcessor(ConfigurableApplicationContext applicationContext) Create a new ApplicationContextAwareProcessor for the given context. | |
| invokeAwareInterfaces | back to summary |
|---|---|
| private void invokeAwareInterfaces(Object bean) | |
| postProcessBeforeInitialization | back to summary |
|---|---|
| public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException Overrides default org. Doc from org. Apply this The default implementation returns the given | |