On Jul 1, 2009, at 6:20 PM, <
[hidden email]> <
[hidden email]
> wrote:
>
>
>> -----Original Message-----
>> From:
[hidden email] [mailto:
[hidden email]] On
>> Behalf
>> Of Vincent Massol
>> Sent: Tuesday, June 30, 2009 10:25 PM
>> To: XWiki Developers
>> Subject: Re: [xwiki-devs] Composable
>>
>> would be great if someone can update that page. Glenn, maybe you
>> could
>> do it?
>>
>> The new way for getting a handle on the Component Manager is simply
>> to
>> have it injected as any other component:
>>
>> @Requirement
>> private ComponentManager componentManager;
>>
>
> OK Thanks. I'll see about updating the page. How about the startup
> and shutdown events? Where should I look for that?
They are sent at startup/shutdown. Right now there's no doc for the
ObservationManager. However you can find how it's used in the code.
For example, the office importer uses those events:
http://bit.ly/IuO29Details:
- you simply need to implement EventListener interface
-Vincent
>
> --
> Glenn
>> Thanks
>> -Vincent
>>
>> On Jul 1, 2009, at 12:13 AM, <
[hidden email]>
>> <
[hidden email]
>>> wrote:
>>
>>> In
http://platform.xwiki.org/xwiki/bin/view/DevGuide/>>> WritingComponents
>> <
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents%20>> the%20org.xwiki.component.phase.Composable
>>>> the Composable interface is described but as been moved to a
>>> different package in 2.0.
>>>
>>>
>>>
>>> Has this been deprecated or is another method recommended for 2.0?
>>>
>>>
>>>
>>> I see the release notes for 2.0 mention a new way to register for
>>> startup or shutdown events. Is this documented anywhere or a
>>> pointer to a component using this available?
>>>
>>>
>>>
>>> Thanks,
>>>
>>>
>>>
>>> Glenn
_______________________________________________
devs mailing list
[hidden email]
http://lists.xwiki.org/mailman/listinfo/devs