Do you see what your doing for the Logger? Do the same thing. On Fri, Nov 21, 2008 at 5:57 AM, <[EMAIL PROTECTED]> wrote: > How do you inject RequestGlobals inside of AppModule ? > > I have tried: > > public RequestFilter buildTimingFilter(final Logger log) > { > return new RequestFilter() > { > > > public boolean service(Request request, Response response, > RequestHandler handler) > throws IOException > { > > > @InjectService("RequestGlobals") RequestGlobals requestGlobals; > // disallowed for this location > > > Inside of: > > public boolean service(Request request, Response response, > @InjectService("RequestGlobals") RequestGlobals > requestGlobals, > RequestHandler handler) > throws IOException > > it does not work because the service method needs to have 2 parameters > only..... > > > Inside of here: > > public RequestFilter buildTimingFilter(final Logger log) > { > return new RequestFilter() > { > > @InjectService("RequestGlobals") RequestGlobals requestGlobals, > > it is also disallowed. > > > The same here: > > public RequestFilter buildTimingFilter(final Logger log) > { > > @InjectService("RequestGlobals") RequestGlobals requestGlobals, > > > or here: > > > @InjectService("RequestGlobals") RequestGlobals requestGlobals, > > public RequestFilter buildTimingFilter(final Logger log) > { > > > I can not find any other places to put this @InjectService annotation. > > Any help is appreciated.... > > Thanks! > > Toby > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
-- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]