It's all about the answers!

Ask a question

What is extensionService used for?


Jose Miguel Ordax Cassa (2.4k2122100) | asked Nov 22 '09, 5:53 p.m.
I am playing around with Follow-up operations and Event Handlers. Both
extension points support extensionService child. What is this used for?
I understand the class set at parent level (operationParticipant and
eventHandler) can do the work...?

Thanks in advance,

Chemi.

2 answers



permanent link
Jared Burns (4.4k29) | answered Nov 25 '09, 8:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
On Sun, 22 Nov 2009 23:46:48 +0100, Chemi wrote:

I am playing around with Follow-up operations and Event Handlers. Both
extension points support extensionService child. What is this used for?
I understand the class set at parent level (operationParticipant and
eventHandler) can do the work...?

Thanks in advance,

Chemi.

The class JavaDoc on IChangeEventHandler tries to explain this. The
extensionService element is needed if your event handler wants to get
access to other services (for example, IRepositoryItemService).

--
Jared Burns
Jazz Process Team

permanent link
SEC Servizi (94622244) | answered Aug 21 '13, 9:56 a.m.
The extensionService element is needed if your event handler wants to get access to other services (for example, IRepositoryItemService).
In which case the eventHandler class could/should be different from the extensionService implementationClass?
<extension point="com.ibm.team.process.service.eventHandlers">
   <eventHandler
     id="com.ibm.team.process.example.saveHandler"
     class="com.ibm.team.process.internal.example.process.server.SaveEventHandler"/>
     eventCategory="com.ibm.team.process.example.save"
     name="Example Save Handler">
     <extensionService
       componentId="com.ibm.team.process.example.saveHandler"
       implementationClass="com.ibm.team.process.internal.example.process.server.SaveEventHandler">
       <prerequisites>
         <requiredService interface="com.ibm.team.repository.service.IRepositoryItemService"/>
         <requiredService interface="com.ibm.team.process.example.common.IExampleService"/>
       </prerequisites>
     </extensionService>
   </eventHandler>
 </extension>
Besides, what does the extensionService componentId attribute stand for?
Thanks in advance.

Your answer


Register or to post your answer.