Hi there,

I believe that one of the main uses of factories besides dependency
management, decoupling the interface from the implementation, and
instance configuration is running "extra code" whenever a new instance
is requested. What if I want to notify listeners, make sure all new
instances are put into a certain collection, have some log output,
etc, on every instance request to a factory? "Side effects" like these
are easily accomplished inside factory methods. I see what google-
guice does for me, but I may be overlooking something, because I'm not
sure how I would go about replacing my factory-heavy dependency
management with google-guice without sacrificing the flexibility of
these "side-effects" in my factory methods.

Is this a conscious limitation of google-guice or a design issue on my
part? Input appreciated.

Regards

-- 
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