public class PostRegistrationActionsPostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
BeanPostProcessor which invokes MuleRegistryHelper.postObjectRegistrationActions(Object) after spring
finishes initialization over each object.| Constructor and Description |
|---|
PostRegistrationActionsPostProcessor(MuleRegistryHelper registryHelper,
org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
| Modifier and Type | Method and Description |
|---|---|
Object |
postProcessAfterInitialization(Object bean,
String beanName)
Execute post process actions over global elements in the mule configuration.
|
Object |
postProcessBeforeInitialization(Object bean,
String beanName) |
public PostRegistrationActionsPostProcessor(MuleRegistryHelper registryHelper, org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
registryHelper - registry helper to delegate post processing of beans.beanFactory - the bean factory to validate the type of beans to post processpublic Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessororg.springframework.beans.BeansExceptionpublic Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
For instance, when a global transformer is defined, the post processing of it's creation will add it to the transformation service as part of the transformation graph.
This logic must not be applied to inner elements that are not named by the user or are instances that were created from prototype bean definitions. This is to prevent beans created for a particular flow like Converters to be registered twice.
postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessorbean - the bean instancebeanName - the bean nameorg.springframework.beans.BeansExceptionCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.