Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

How to initialize a queryService?

I wanted to use the Repository Query API. The first thing I need to do is to get the queryService.

Searched in this forum and got some clues,

IQueryService queryService = getService(IQueryService.class); 


But it seems unacceptable by my compiler, getService method is not recognized.

Anyone to help me out? Thanks very much!

0 votes



One answer

Permanent link
The getService method is on com.ibm.team.repository.service.AbstractService, which is a base class for repository-based services. In order to use it, you must implement your own such service, then declare a dependency (prerequisites element in plugin.xml extension) on the repository query service.

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,973

Question asked: May 03 '11, 11:46 a.m.

Question was seen: 5,466 times

Last updated: May 03 '11, 11:46 a.m.

Confirmation Cancel Confirm