Hi all, I have tree classes that I would like to advise for logging. However they are normal class (not much point in making them interface as that would just another layer that I really dont need for this).
I have tried @Match({"SystemManager", "ManageX", "ManageY", "ManageZ"}) public static void adviseLogging(LoggingAdvisor loggingAdvisor, Logger logger, MethodAdviceReceiver receiver) { loggingAdvisor.addLoggingAdvice(logger, receiver); } The SystemManager is like a dispatcher that invokes methods on the other tree. That is a interface. The other tree are not. The logging advises works for the first but not for the other 3. I bind them into service like this public static void bind(ServiceBinder binder) { binder.bind(ManageX.class); binder.bind(ManageY.class); binder.bind(ManageZ.class); binder.bind(SystemManager.class, SystemManagerImpl.class); } Any ideas if I can make this work without creating an interface? Cheers, Boris