The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Stefan Weber <stefan.we...@gmail.com>
Date: Thu, 12 Nov 2009 20:09:08 +0100
Local: Thurs, Nov 12 2009 2:09 pm
Subject: Re: Threading Policies
On Thu, Nov 12, 2009 at 3:14 PM, Sergio Bossa <sergio.bo...@gmail.com>wrote:
> So, you'd like to implement some kind of custom routing logic: that
Correct :)
> is, rather than routing on the message type, you may want to route on > some kind of message property, is that correct? > If so, the correct way to solve this would be IMO to enhance the
This looks very nice! Much cleaner than the solution I tried to described!
> annotation processing, i.e. by adding some kind of predicate to test > on received messages, something like: > @OnMessage(type = Message.class, predicate = FooPredicate.class)
> public class FooPredicate implements Predicate<Message> {
> public boolean accept(Message msg) { ... }
> What do you think?
Cheers,
Stefan
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||