On Feb 24, 2010, at 5:30 PM, Jerome Velociter wrote:
On 2/24/10 5:24 PM, Caleb James DeLisle wrote:
If you're talking about an eventListener in a
groovy script, I think
it's done with a scheduler. You can look at Vincent's IRC bot which
does that very thing.
http://svn.xwiki.org/svnroot/xwiki/platform/xwiki-applications/trunk/ircbot…
We should probably think about "initializable scripts" to avoid having
to perform this scheduler trick.
An object of class "XWiki.InitializableScript" with a script text area?
Yes we have this need that we've discussed with Thomas in the past. I don't think
we have a jira issue if you want to create one.
Thanks
-Vincent
Jerome.
>
>
> Caleb James DeLisle
>
>
> Rieken, Joshua wrote:
>> Hello,
>>
>> I need to find the best way of registering an event listener automatically on
wiki startup. Right now I have to manually register the listener in a manner similar to
the one illustrated in the Groovy Notification Tutorial
(
http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotificationTutorial).
>>
>> Thanks in advance for any help.
>>
>> - Joshua