MetaClass method to add to Grails?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

MetaClass method to add to Grails?

Steven Devijver
Hey,

Could this snippet be considered for addition to Grails?

javax.servlet.ServletContext.metaClass.getApplicationContext = {->
   org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(delegate)
}

Handy for the BootStrap class.

Thanks

Steven

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: MetaClass method to add to Grails?

Graeme-Rocher
Certainly, raise an issue attach the snippet

Cheers

On 10/11/07, Steven Devijver <[hidden email]> wrote:

> Hey,
>
> Could this snippet be considered for addition to Grails?
>
> javax.servlet.ServletContext.metaClass.getApplicationContext = {->
>    org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(delegate)
> }
>
> Handy for the BootStrap class.
>
> Thanks
>
> Steven
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


--
Graeme Rocher
Grails Project Lead
http://grails.org

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: MetaClass method to add to Grails?

Steven Devijver
http://jira.codehaus.org/browse/GRAILS-1693

On 10/11/07, Graeme Rocher <[hidden email]> wrote:

> Certainly, raise an issue attach the snippet
>
> Cheers
>
> On 10/11/07, Steven Devijver <[hidden email]> wrote:
> > Hey,
> >
> > Could this snippet be considered for addition to Grails?
> >
> > javax.servlet.ServletContext.metaClass.getApplicationContext = {->
> >    org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(delegate)
> > }
> >
> > Handy for the BootStrap class.
> >
> > Thanks
> >
> > Steven
> >
> > ---------------------------------------------------------------------
> > To unsubscribe from this list please visit:
> >
> >     http://xircles.codehaus.org/manage_email
> >
> >
>
>
> --
> Graeme Rocher
> Grails Project Lead
> http://grails.org
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email