Be aware that AOP adds overhead onto these operations. I had to revert usage of AOP in a project once where we some of the methods were called very frequent. In most cases it is no problem but if you application will make heavy use of these getters and setters it could become noticeable.
To your concrete problem:
Guice can only intercept method on objects it has created. This means if you want to be able to intercept methods on objects which are of type Company (or a subclass of it) then you must use Guice to create this object. Either by having Guice inject it into your code or by calling injector.getInstance().
--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-guice...@googlegroups.com.
To post to this group, send email to google...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-guice.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/e7028ea4-0a6f-48ea-9a94-e6fcd75273c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.