Transformer parsers now implement getTransformerClassName() to return a String instead of returning Class instances with getTransformerClass(). This avoids the loading of Classes that may lead to dependencies not available for the tools (INT-114).
This commit is contained in:
@@ -22,8 +22,6 @@ import org.springframework.beans.factory.support.BeanDefinitionBuilder;
|
||||
import org.springframework.beans.factory.xml.ParserContext;
|
||||
import org.springframework.integration.config.xml.AbstractTransformerParser;
|
||||
import org.springframework.integration.config.xml.IntegrationNamespaceUtils;
|
||||
import org.springframework.integration.mail.transformer.MailToStringTransformer;
|
||||
import org.springframework.integration.transformer.Transformer;
|
||||
|
||||
/**
|
||||
* Parser for the <mail-to-string-transformer> element.
|
||||
@@ -33,8 +31,8 @@ import org.springframework.integration.transformer.Transformer;
|
||||
public class MailToStringTransformerParser extends AbstractTransformerParser {
|
||||
|
||||
@Override
|
||||
protected Class<? extends Transformer> getTransformerClass() {
|
||||
return MailToStringTransformer.class;
|
||||
protected String getTransformerClassName() {
|
||||
return "org.springframework.integration.mail.transformer.MailToStringTransformer";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user