Re: [xwiki-users] Components from the wiki

2009-12-07 Thread Lewis Denizen
Thanks again, Vincent! Yup, ComponentDescriptorFactory did the magic :-D On Dec 4, 2009, at 1:39 AM, Vincent Massol wrote: > > On Dec 3, 2009, at 4:34 PM, Lewis Denizen wrote: > >> Thanks Vincent! That's exactly what I needed :-) Just one more >> question, >> though.. Is it possible to inj

Re: [xwiki-users] Components from the wiki

2009-12-03 Thread Vincent Massol
On Dec 3, 2009, at 5:14 PM, Lewis Denizen wrote: > Actually... seems like componentDescriptor.addComponentDependency() > doesn't > add the dependency either :-( Just ends up being null when > retrieving it. > Is there something that needs to be done before injection happens on > these > o

Re: [xwiki-users] Components from the wiki

2009-12-03 Thread Vincent Massol
On Dec 3, 2009, at 4:34 PM, Lewis Denizen wrote: > Thanks Vincent! That's exactly what I needed :-) Just one more > question, > though.. Is it possible to inject dependencies by using the > attributes > defined within the class then? Right now, using the > DefaultComponentDescriptor, I ca

Re: [xwiki-users] Components from the wiki

2009-12-03 Thread Lewis Denizen
Actually... seems like componentDescriptor.addComponentDependency() doesn't add the dependency either :-( Just ends up being null when retrieving it. Is there something that needs to be done before injection happens on these objects? On Fri, Dec 4, 2009 at 12:34 AM, Lewis Denizen wrote: > Than

Re: [xwiki-users] Components from the wiki

2009-12-03 Thread Lewis Denizen
Thanks Vincent! That's exactly what I needed :-) Just one more question, though.. Is it possible to inject dependencies by using the attributes defined within the class then? Right now, using the DefaultComponentDescriptor, I can inject dependencies using: componentDescriptor.addComponentDepen

Re: [xwiki-users] Components from the wiki

2009-12-01 Thread Vincent Massol
Hi Lewis, On Dec 1, 2009, at 7:12 PM, Lewis Denizen wrote: > Hi xwiki-users, > > I'm trying to bootstrap a component from the wiki itself (via > Groovy). I > have an interface defined as follows: > > // This is the text inside the User.UserDAO document > {{groovy}} > interface UserDAO > { >

[xwiki-users] Components from the wiki

2009-12-01 Thread Lewis Denizen
Hi xwiki-users, I'm trying to bootstrap a component from the wiki itself (via Groovy). I have an interface defined as follows: // This is the text inside the User.UserDAO document {{groovy}} interface UserDAO { def ROLE = UserDAO.class.name /** * Returns the current user name.