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]

Reply via email to