moved XPathHeaderEnricher into the 'transformer' package

This commit is contained in:
Mark Fisher
2010-06-25 04:50:47 +00:00
parent 69cb492b78
commit bfb158bbb6
3 changed files with 9 additions and 5 deletions

View File

@@ -35,9 +35,12 @@ import org.springframework.util.StringUtils;
*/
public class XPathHeaderEnricherParser extends AbstractTransformerParser {
private static final String PACKAGE = "org.springframework.integration.xml.transformer";
@Override
protected final String getTransformerClassName() {
return "org.springframework.integration.xml.enricher.XPathHeaderEnricher";
return PACKAGE + ".XPathHeaderEnricher";
}
@Override
@@ -59,7 +62,7 @@ public class XPathHeaderEnricherParser extends AbstractTransformerParser {
String elementName = node.getLocalName();
if ("header".equals(elementName)) {
BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(
"org.springframework.integration.xml.enricher.XPathHeaderEnricher$XPathExpressionEvaluatingHeaderValueMessageProcessor");
PACKAGE + ".XPathHeaderEnricher$XPathExpressionEvaluatingHeaderValueMessageProcessor");
String expressionString = headerElement.getAttribute("xpath-expression");
String expressionRef = headerElement.getAttribute("xpath-expression-ref");
boolean isExpressionString = StringUtils.hasText(expressionString);

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.integration.xml.enricher;
package org.springframework.integration.xml.transformer;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.integration.xml.enricher;
package org.springframework.integration.xml.transformer;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
@@ -28,7 +28,8 @@ import org.junit.Test;
import org.springframework.integration.core.Message;
import org.springframework.integration.core.MessageHeaders;
import org.springframework.integration.message.MessageBuilder;
import org.springframework.integration.xml.enricher.XPathHeaderEnricher.XPathExpressionEvaluatingHeaderValueMessageProcessor;
import org.springframework.integration.xml.transformer.XPathHeaderEnricher;
import org.springframework.integration.xml.transformer.XPathHeaderEnricher.XPathExpressionEvaluatingHeaderValueMessageProcessor;
import org.springframework.integration.xml.xpath.XPathEvaluationType;
/**