I'm adding a @Match("*") advice for monitoring. I am currently advising all of the service interface methods with @Monitor successfully.
One thing that I'm missing is the ability to modify my advice depending on the service marker or id for a particular implementation. The concept doesn't seem too foreign because you can @Advise(MyService.class) @GreenMarker public static void foo( MethodAdviceReceiver receiver) { ... } What I want is something along the lines of: @Match("*") public static void adviseForMonitoredServices(MethodAdviceReceiver receiver, @Named("MonitorAdviser") MonitorAdviser monitorAdviser) { Set<Class> markers = receiver.getMarkers(); String serviceId = receiver.getServiceId(); } I provide a monitor naming strategy which I can extend by service type, but I would like to also be able to extend it by marker/serviceId so that if a user has: @Clustered and @InProcess JobSchedulers (as in from http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html) I can annotate JobScheduler's methods and monitors for each implementation. I'm looking at how this change might get implemented, but if anyone has ideas of how this might work with the existing codebase I'd love to hear about it. Thanks, Josh --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org