Skip to content

Commit abf6a7e

Browse files
committed
made parse and decorate non-final (SPR-6526)
1 parent 33a7bbb commit abf6a7e

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

org.springframework.beans/src/main/java/org/springframework/beans/factory/xml/NamespaceHandlerSupport.java

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2008 the original author or authors.
2+
* Copyright 2002-2009 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -27,12 +27,13 @@
2727
import org.springframework.beans.factory.config.BeanDefinitionHolder;
2828

2929
/**
30-
* Support class for implementing custom {@link NamespaceHandler NamespaceHandlers}. Parsing and
31-
* decorating of individual {@link Node Nodes} is done via {@link BeanDefinitionParser} and
32-
* {@link BeanDefinitionDecorator} strategy interfaces respectively. Provides the
33-
* {@link #registerBeanDefinitionParser}, {@link #registerBeanDefinitionDecorator} methods
34-
* for registering a {@link BeanDefinitionParser} or {@link BeanDefinitionDecorator} to handle
35-
* a specific element.
30+
* Support class for implementing custom {@link NamespaceHandler NamespaceHandlers}.
31+
* Parsing and decorating of individual {@link Node Nodes} is done via {@link BeanDefinitionParser}
32+
* and {@link BeanDefinitionDecorator} strategy interfaces, respectively.
33+
*
34+
* <p>Provides the {@link #registerBeanDefinitionParser} and {@link #registerBeanDefinitionDecorator}
35+
* methods for registering a {@link BeanDefinitionParser} or {@link BeanDefinitionDecorator}
36+
* to handle a specific element.
3637
*
3738
* @author Rob Harrop
3839
* @author Juergen Hoeller
@@ -68,7 +69,7 @@ public abstract class NamespaceHandlerSupport implements NamespaceHandler {
6869
* Parses the supplied {@link Element} by delegating to the {@link BeanDefinitionParser} that is
6970
* registered for that {@link Element}.
7071
*/
71-
public final BeanDefinition parse(Element element, ParserContext parserContext) {
72+
public BeanDefinition parse(Element element, ParserContext parserContext) {
7273
return findParserForElement(element, parserContext).parse(element, parserContext);
7374
}
7475

@@ -90,7 +91,7 @@ private BeanDefinitionParser findParserForElement(Element element, ParserContext
9091
* Decorates the supplied {@link Node} by delegating to the {@link BeanDefinitionDecorator} that
9192
* is registered to handle that {@link Node}.
9293
*/
93-
public final BeanDefinitionHolder decorate(
94+
public BeanDefinitionHolder decorate(
9495
Node node, BeanDefinitionHolder definition, ParserContext parserContext) {
9596

9697
return findDecoratorForNode(node, parserContext).decorate(node, definition, parserContext);

0 commit comments

Comments
 (0)