made parse and decorate non-final (SPR-6526)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2008 the original author or authors.
|
* Copyright 2002-2009 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -27,12 +27,13 @@ import org.springframework.beans.factory.config.BeanDefinition;
|
|||||||
import org.springframework.beans.factory.config.BeanDefinitionHolder;
|
import org.springframework.beans.factory.config.BeanDefinitionHolder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Support class for implementing custom {@link NamespaceHandler NamespaceHandlers}. Parsing and
|
* Support class for implementing custom {@link NamespaceHandler NamespaceHandlers}.
|
||||||
* decorating of individual {@link Node Nodes} is done via {@link BeanDefinitionParser} and
|
* Parsing and decorating of individual {@link Node Nodes} is done via {@link BeanDefinitionParser}
|
||||||
* {@link BeanDefinitionDecorator} strategy interfaces respectively. Provides the
|
* and {@link BeanDefinitionDecorator} strategy interfaces, respectively.
|
||||||
* {@link #registerBeanDefinitionParser}, {@link #registerBeanDefinitionDecorator} methods
|
*
|
||||||
* for registering a {@link BeanDefinitionParser} or {@link BeanDefinitionDecorator} to handle
|
* <p>Provides the {@link #registerBeanDefinitionParser} and {@link #registerBeanDefinitionDecorator}
|
||||||
* a specific element.
|
* methods for registering a {@link BeanDefinitionParser} or {@link BeanDefinitionDecorator}
|
||||||
|
* to handle a specific element.
|
||||||
*
|
*
|
||||||
* @author Rob Harrop
|
* @author Rob Harrop
|
||||||
* @author Juergen Hoeller
|
* @author Juergen Hoeller
|
||||||
@@ -68,7 +69,7 @@ public abstract class NamespaceHandlerSupport implements NamespaceHandler {
|
|||||||
* Parses the supplied {@link Element} by delegating to the {@link BeanDefinitionParser} that is
|
* Parses the supplied {@link Element} by delegating to the {@link BeanDefinitionParser} that is
|
||||||
* registered for that {@link Element}.
|
* registered for that {@link Element}.
|
||||||
*/
|
*/
|
||||||
public final BeanDefinition parse(Element element, ParserContext parserContext) {
|
public BeanDefinition parse(Element element, ParserContext parserContext) {
|
||||||
return findParserForElement(element, parserContext).parse(element, parserContext);
|
return findParserForElement(element, parserContext).parse(element, parserContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,7 +91,7 @@ public abstract class NamespaceHandlerSupport implements NamespaceHandler {
|
|||||||
* Decorates the supplied {@link Node} by delegating to the {@link BeanDefinitionDecorator} that
|
* Decorates the supplied {@link Node} by delegating to the {@link BeanDefinitionDecorator} that
|
||||||
* is registered to handle that {@link Node}.
|
* is registered to handle that {@link Node}.
|
||||||
*/
|
*/
|
||||||
public final BeanDefinitionHolder decorate(
|
public BeanDefinitionHolder decorate(
|
||||||
Node node, BeanDefinitionHolder definition, ParserContext parserContext) {
|
Node node, BeanDefinitionHolder definition, ParserContext parserContext) {
|
||||||
|
|
||||||
return findDecoratorForNode(node, parserContext).decorate(node, definition, parserContext);
|
return findDecoratorForNode(node, parserContext).decorate(node, definition, parserContext);
|
||||||
|
|||||||
Reference in New Issue
Block a user