
Originally Posted by
cunparis
I need to use an advice with the public methods of my business services. I started by creating an empty "tag" interface and I have my business service interfaces extend it. That works. Only the methods in the interface receive the advice and the private methods in the business service do not.
So then I thought it'd be more appropriate to use annotations. It'd keep the public interface simpler. But unfortunately it doesn't work. It seems that the implementation class doesn't receive the annotations of the interface. I can understand this, although I think it's a bummer. It'd be nice to have another option, like @targetIncludingInterfaces for lack of a better name.
I'm curious how others are doing it and if there is a better way than using market interfaces?