What is extensionService used for?
2 answers
On Sun, 22 Nov 2009 23:46:48 +0100, Chemi wrote:
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
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
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.