Package de.otto.synapse.annotation
Class AbstractAnnotationBasedBeanRegistrar
- java.lang.Object
-
- de.otto.synapse.annotation.AbstractAnnotationBasedBeanRegistrar
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.annotation.ImportBeanDefinitionRegistrar,org.springframework.context.EnvironmentAware
- Direct Known Subclasses:
EventSourceBeanRegistrar,MessageLogReceiverEndpointBeanRegistrar,MessageQueueReceiverEndpointBeanRegistrar,MessageSenderEndpointBeanRegistrar
public abstract class AbstractAnnotationBasedBeanRegistrar extends java.lang.Object implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.context.EnvironmentAwareImportBeanDefinitionRegistrarfor message log support.- See Also:
EnableMessageLogReceiverEndpoint
-
-
Constructor Summary
Constructors Constructor Description AbstractAnnotationBasedBeanRegistrar()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.Class<? extends java.lang.annotation.Annotation>getAnnotationType()org.springframework.core.env.EnvironmentgetEnvironment()protected abstract voidregisterBeanDefinitions(java.lang.String channelName, java.lang.String beanName, org.springframework.core.annotation.AnnotationAttributes annotationAttributes, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)voidregisterBeanDefinitions(org.springframework.core.type.AnnotationMetadata metadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)voidsetEnvironment(org.springframework.core.env.Environment environment)Set theEnvironmentthat this component runs in.
-
-
-
Method Detail
-
setEnvironment
public final void setEnvironment(org.springframework.core.env.Environment environment)
Set theEnvironmentthat this component runs in.- Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware- Parameters:
environment- the current Spring environment
-
getEnvironment
public final org.springframework.core.env.Environment getEnvironment()
-
registerBeanDefinitions
public void registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata metadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)- Specified by:
registerBeanDefinitionsin interfaceorg.springframework.context.annotation.ImportBeanDefinitionRegistrar
-
getAnnotationType
protected abstract java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotationType()
-
registerBeanDefinitions
protected abstract void registerBeanDefinitions(java.lang.String channelName, java.lang.String beanName, org.springframework.core.annotation.AnnotationAttributes annotationAttributes, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
-
-