-----Original Message-----
 From: users-bounces(a)xwiki.org
 [mailto:users-bounces@xwiki.org] On Behalf Of Thomas Mortagne
 Sent: Tuesday, December 01, 2009 2:39 PM
 To: XWiki Users
 Subject: Re: [xwiki-users] Passing arguments to Groovy object
 constructor
 Hi,
 On Tue, Dec 1, 2009 at 20:44, Rieken, Joshua
 <Joshua_Rieken(a)reyrey.com> wrote:
  Hello,
 Is it possible to pass arguments to a Groovy object 
 instantiated using
xwiki.parseGroovyFromPage("Blah.Blah"), or
 is there some other way to do it?
 You could have some init() methods in your groovy class to
 call when you have the objects. 
Ah, yes, that will work for many uses. To be more specific, what I'm looking to do is
create a class that extends groovy.io.File. A File does not have a constructor that takes
zero arguments, so I was looking for a way to pass arguments when the object is created
rather than calling an init(). Otherwise, I can't even instantiate the object without
just hardcoding the path into the class, which is not a viable option.
Any suggestions?
Thanks,
Joshua
 Thanks,
 Joshua
 _______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users
 
 --
 Thomas Mortagne
 _______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users