Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] Scope of metaClass manipulation

Martin McFly

2010-03-08

Replies: Find Java Web Hosting

Author LoginPost Reply

Hello,

when I define the following:

class Foo {
 Foo() {
  String.metaClass.rightShift = { // do something // }
}
}

how is the scope of this manipulation ? is it only available for Instances
of Foo or for the whole application ?

Thanks
--
Sent from the groovy - user mailing list archive at Nabble.com.


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

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.