public class AvailableToPluginsBeanDefinitionRegistryProcessor extends Object implements org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
BeanDefinitionRegistryPostProcessor which scans for AnnotatedBeanDefinitions in the
registry (i.e. beans defined by Bean-annotated methods) which are
also annotated with AvailableToPlugins. These bean definitions are then used to configure the spring
host component provider.
Note that AvailableToPlugins can also be used to annotate the bean class itself, in which case this is
handled by SpringHostComponentProviderFactoryBean itself.
Usage: simply declare a bean of this class in your application context, and Spring will invoke it appropriately.
PluginBeanDefinitionRegistry,
SpringHostComponentProviderFactoryBean| Constructor and Description |
|---|
AvailableToPluginsBeanDefinitionRegistryProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
postProcessBeanDefinitionRegistry(org.springframework.beans.factory.support.BeanDefinitionRegistry registry) |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
public AvailableToPluginsBeanDefinitionRegistryProcessor()
public void postProcessBeanDefinitionRegistry(@Nonnull org.springframework.beans.factory.support.BeanDefinitionRegistry registry) throws org.springframework.beans.BeansException
postProcessBeanDefinitionRegistry in interface org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessororg.springframework.beans.BeansExceptionpublic void postProcessBeanFactory(@Nonnull org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) throws org.springframework.beans.BeansException
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessororg.springframework.beans.BeansExceptionCopyright © 2019 Atlassian. All rights reserved.