Other cases are cloning stuff or property handling... I have more cases but with interceptions and, as Guice creates CGLIB proxy to handle AOP, it is not usable for me because instance are no more serializable (a requirement in my case). So, Guice is not fully transparent.
Anthony 2008/11/7 Brian Pontarelli <[EMAIL PROTECTED]> > > Interesting. I guess if you have absolutely no static method calls in > your code, this makes sense. Normally that type of thing is just put > into a toolkit similar to Math. > > Anyone else doing something more transactional? Just wondering what > the cases are. > > -bp > > P.S. I'm a service-based guy, so I tend to favor anemic domains. > > > On Nov 6, 2008, at 4:01 PM, Gili Tzabari wrote: > > > > > > > For example, I implement toString() as: > > > > return objects.toString(this); > > > > This walks all non-static fields using reflection and prints it > out. > > That's just one example (using helper functions). > > > > Gili > > > > Brian Pontarelli wrote: > >>> +1 Imho Guice will be less invasive and can be applied to core of my > >>> system (domain model) > >> > >> I've seen this a few times and wondered what people are injecting > >> into > >> domains? Are you using a non-anemic domain and injecting other > >> domains or services into? > >> > >> -bp > >> > >> > >>> > >> > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
