The 'enable-annotations' element is now <annotation-config/>.

This commit is contained in:
Mark Fisher
2008-11-11 23:35:12 +00:00
parent 818226069f
commit 6771eaea23
19 changed files with 20 additions and 20 deletions

View File

@@ -27,12 +27,12 @@ import org.springframework.beans.factory.xml.ParserContext;
import org.springframework.integration.config.annotation.MessagingAnnotationPostProcessor;
/**
* Parser for the &lt;enable-annotations&gt; element of the integration namespace.
* Parser for the &lt;annotation-config&gt; element of the integration namespace.
* Adds a {@link MessagingAnnotationPostProcessor} to the application context.
*
* @author Mark Fisher
*/
public class EnableAnnotationsParser extends AbstractSingleBeanDefinitionParser {
public class AnnotationConfigParser extends AbstractSingleBeanDefinitionParser {
@Override
protected Class<?> getBeanClass(Element element) {

View File

@@ -109,7 +109,7 @@ public class IntegrationNamespaceHandler implements NamespaceHandler {
registerBeanDefinitionParser("outbound-channel-adapter", new MethodInvokingOutboundChannelAdapterParser());
registerBeanDefinitionParser("gateway", new GatewayParser());
registerBeanDefinitionParser("selector-chain", new SelectorChainParser());
registerBeanDefinitionParser("enable-annotations", new EnableAnnotationsParser());
registerBeanDefinitionParser("annotation-config", new AnnotationConfigParser());
registerBeanDefinitionParser("application-event-multicaster", new ApplicationEventMulticasterParser());
registerBeanDefinitionParser("thread-pool-task-executor", new PoolExecutorParser());
}

View File

@@ -16,7 +16,7 @@
]]></xsd:documentation>
</xsd:annotation>
<xsd:element name="enable-annotations">
<xsd:element name="annotation-config">
<xsd:annotation>
<xsd:documentation>
Enables annotation support for Message Endpoints.