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.| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractImportingAnnotationConfiguration.BeanDelegatingFactoryBean<T,B extends AnnotationBuilder<O>,O> |
| Constructor and Description |
|---|
AbstractImportingAnnotationConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.springframework.beans.factory.config.BeanDefinition |
buildBeanDefinition(org.springframework.core.type.AnnotationMetadata importingClassMetadata,
java.lang.Class<? extends java.lang.annotation.Annotation> namedAnnotation)
Called to get a bean definition to register.
|
protected abstract java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getAnnotations()
Gets the annotations 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(org.springframework.core.type.AnnotationMetadata importingClassMetadata,
java.lang.Class<? extends java.lang.annotation.Annotation> namedAnnotation)
throws java.lang.Exception
importingClassMetadata - annotation metadata of the importing classnamedAnnotation - found annotations for bean namesjava.lang.Exception - if error occurredprotected abstract java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> getAnnotations()
protected org.springframework.beans.factory.BeanFactory getBeanFactory()
protected org.springframework.core.env.Environment getEnvironment()