hi!

the example pointed out at
http://code.google.com/intl/xx-pirate/docreader/#p=google-guice&s=google-guice&t=FrequentlyAskedQuestions
has a nice syntax - static inner class + private constructor. never
thought of that, and avoided factories for the reason one could easily
bypass the factory, using public constructors..

my question is: can you use AOP on the class Thing ? my first thought
would be no, because you instantiate it yourself in the factory.

BUT - the factory is created by guice - thus it may be possible that
the factory itself has a interceptor attached on the make Method. the
object returned can be encapsulated in a proxy/subclass, thus AOP
(e.g. transactional annotation) could work nevertheless.
is something like that implemented in guice? do the Thing instances
count as "managed by guice" ?
regards,
Andreas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to