Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

What is extensionService used for?

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.

0 votes



2 answers

Permanent link
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

0 votes


Permanent link
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.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Nov 22 '09, 5:53 p.m.

Question was seen: 5,977 times

Last updated: Aug 21 '13, 9:56 a.m.

Confirmation Cancel Confirm