On Thu, 03 Oct 2013 12:58:42 -0300, Alessio Gambi <alessioga...@gmail.com> wrote:

And I want to advice only AmazonServiceUpdater and OSServiceUpdater.

I solved this by defining a Marker annotation @CloudServiceUpdater, place it on the two services, and finally, use the combination

@Advise
@CloudServiceUpdater

which seems to work just fine.

Yeah, that's a very good solution. Maybe even the most recommended one.

I prefer this solution instead of using service id (and regex) because it is refactoring safe.

Agreed.

 Still a question remains:

If @Match and @Advise should not used together, is the combination "@<marker-annotation> and @Advise" valid ?

Good question. I'd say that in most situations it isn't. It depends on how many ways you're trying to filter the services to be advised. If it's just one, it's fine (@Advise as a way to to use the "advise" method name prefix). Otherwise, it doesn't make much sense to me.

--
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to