JAMES-2107 fix Camel deprecations
Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/b87f9fcb Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/b87f9fcb Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/b87f9fcb Branch: refs/heads/master Commit: b87f9fcb68d9e6a77dfcce36dffadc42c8175a1f Parents: 3bd12ae Author: Matthieu Baechler <matth...@apache.org> Authored: Wed Aug 16 15:36:11 2017 +0200 Committer: Matthieu Baechler <matth...@apache.org> Committed: Thu Aug 17 13:27:12 2017 +0200 ---------------------------------------------------------------------- .../mailetcontainer/impl/camel/MatcherSplitter.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/b87f9fcb/server/mailet/mailetcontainer-camel/src/main/java/org/apache/james/mailetcontainer/impl/camel/MatcherSplitter.java ---------------------------------------------------------------------- diff --git a/server/mailet/mailetcontainer-camel/src/main/java/org/apache/james/mailetcontainer/impl/camel/MatcherSplitter.java b/server/mailet/mailetcontainer-camel/src/main/java/org/apache/james/mailetcontainer/impl/camel/MatcherSplitter.java index 77c3dcd..2b34c4e 100644 --- a/server/mailet/mailetcontainer-camel/src/main/java/org/apache/james/mailetcontainer/impl/camel/MatcherSplitter.java +++ b/server/mailet/mailetcontainer-camel/src/main/java/org/apache/james/mailetcontainer/impl/camel/MatcherSplitter.java @@ -27,9 +27,9 @@ import java.util.Locale; import javax.mail.MessagingException; import org.apache.camel.Body; +import org.apache.camel.ExchangeProperty; import org.apache.camel.Handler; import org.apache.camel.InOnly; -import org.apache.camel.Property; import org.apache.james.core.MailImpl; import org.apache.james.mailetcontainer.impl.ProcessorUtil; import org.apache.james.mailetcontainer.lib.AbstractStateMailetProcessor.MailetProcessorListener; @@ -74,11 +74,11 @@ public class MatcherSplitter { * @throws MessagingException */ @Handler - public List<Mail> split(@Property(MATCHER_PROPERTY) Matcher matcher, - @Property(ON_MATCH_EXCEPTION_PROPERTY) String onMatchException, - @Property(LOGGER_PROPERTY) Logger logger, - @Property(MAILETCONTAINER_PROPERTY) CamelMailetProcessor container, - @Property(METRIC_FACTORY) MetricFactory metricFactory, + public List<Mail> split(@ExchangeProperty(MATCHER_PROPERTY) Matcher matcher, + @ExchangeProperty(ON_MATCH_EXCEPTION_PROPERTY) String onMatchException, + @ExchangeProperty(LOGGER_PROPERTY) Logger logger, + @ExchangeProperty(MAILETCONTAINER_PROPERTY) CamelMailetProcessor container, + @ExchangeProperty(METRIC_FACTORY) MetricFactory metricFactory, @Body Mail mail) throws MessagingException { Collection<MailAddress> matchedRcpts = null; Collection<MailAddress> origRcpts = new ArrayList<>(mail.getRecipients()); --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org