Hey bklough....

I guess I was asking the wrong question, and got caught up on the
wrong thing while trying to inject dependencies.

Basically, I am using OWASP ESAPI in my application, and they have
several Singletons which are used throughout the java web application.

I am attempting to inject those singletons, but have had no luck, I
have tried during both double-checked locking and  using the On demand
holder idiom.

I will take my question over to that list.  Sorry to waste your time
on a logger issue.

On Sep 17, 10:49 pm, bklough <[email protected]> wrote:
> https://groups.google.com/d/topic/google-guice/KxOiGv6g2Qw/discussion
>
> No offense, but when I see these "static Logger" posts my frontal lobe
> immediately shuts down.  The above link should get you going.  Please feel
> free to do further searches of the group andwww.stackoverflow.com.  The
> short-cut rule-of-thumb you may be looking for is: if you have a class that
> leverages Guice, via a Module with a binding for that class, which you
> configure Guice with via "Guice.createInjector(new MyModule());" , then
> using that same statement in your listener will work as well.  In short, if
> your unit test works, barring that static/singleton issue I mentioned, it
> should also work in the web app if configured correctly.
>
> Feel free to post you web.xml, your Listener code, the code for the module
> your listener uses, and an abbreviated class.  I would be more than happy to
> look at it.

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