you can go new GuiceFilter().destroy() though that's kinda kludgey.
Ideally you want to install struts2 as a filter inside ServletModule. But
the struts2 plugin has its own issues. I will see if I can patch it in the
next couple of weeks to work a bit better with ServletModule.

You did not say whether you are using the DSL to configure your
servlets/filters? If you aren't you shouldn't even get the warning...

On Thu, May 21, 2009 at 11:30 PM, Greg Lindholm <[email protected]>wrote:

>
> I've been looking but haven't been able to figure it out...
>
> How do I get a reference to GuiceFilter so I can call destroy()?
>
> It appears that GuiceObjectFactory from the Struts2 plugin is causing
> GuiceFilter to be created but I can't figure how to get a reference to
> it.
>
> (or should I just turn off the warning for the unit tests?)
>
> On May 20, 6:35 pm, "Dhanji R. Prasanna" <[email protected]> wrote:
> > Yea you need to call GuiceFilter.destroy() in your test tearDown, to
> clean
> > up.
> > If you are not using the in-code servlet configuration(i.e.
> > filter().through(), etc.), however, you can safely ignore this warning.
> >
> > Dhanji.
> >
>
> >
>

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