O - The object that used builder returnsB - The type of the builderpublic abstract class AbstractImportingAnnotationConfiguration<B extends AnnotationBuilder<O>,O>
extends java.lang.Object
implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.EnvironmentAware
Configuration which works on a bean definition level
relying on ImportBeanDefinitionRegistrar phase to register beans.| Constructor and Description |
|---|
AbstractImportingAnnotationConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.springframework.beans.factory.config.BeanDefinition |
buildBeanDefinition(java.util.List<AnnotationConfigurer<O,B>> configurers)
Called with a specific annotation configurers to get
a bean definition to register.
|
protected abstract java.lang.Class<? extends java.lang.annotation.Annotation> |
getAnnotation()
Gets the annotation specific for this configurer.
|
protected org.springframework.beans.factory.BeanFactory |
getBeanFactory()
Gets the bean factory.
|
protected org.springframework.core.env.Environment |
getEnvironment()
Gets the environment.
|
void |
registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
public AbstractImportingAnnotationConfiguration()
public void registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
registerBeanDefinitions in interface org.springframework.context.annotation.ImportBeanDefinitionRegistrarpublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment in interface org.springframework.context.EnvironmentAwareprotected abstract org.springframework.beans.factory.config.BeanDefinition buildBeanDefinition(java.util.List<AnnotationConfigurer<O,B>> configurers) throws java.lang.Exception
configurers - the configurersjava.lang.Exceptionprotected abstract java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotation()
protected org.springframework.beans.factory.BeanFactory getBeanFactory()
protected org.springframework.core.env.Environment getEnvironment()