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

Is the IComponentDefinitions.java needed (in general) for a Participant?

I have a few different Participants that I have gotten from different individuals.   Some contain an IComponentDefinitions.java file and some do not.  This IComponentDefinitions.java file contains a static String with a COMPONENT_ID but nothing else.

I'm not clear what these are for or if I need them.  The ones without the file works just fine ... but I have been asked about the use of the file and if they can be removed or not.

Thanks
Susan

0 votes

Comments

I do not use that model in any of my plugins 



One answer

Permanent link
Susan, as explained in the Extensions Workshop, you need to define a component.

However, the IComponentDefinitions Java file in this workshop is just an interface, that is used to provide some constants e.g. the component ID. This is not strictly necessary, but can be used e.g. creating error messages.This is strictly optimal and the class is not needed if you code your own extensions.

0 votes

Comments

said a different way, when defining an extension, you MUST have a component element in the plugin.xml

  <extension
            point="com.ibm.team.repository.common.components">
            <component id="com.sd.repository.file.parms"
                name="RTC File Synchronization Service Properties">

and its required attribute id= must contain a unique string value.

you CAN use a class in the bundle to provide that string value.
but this approach is not required.

1 vote

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: Jun 13 '14, 8:50 p.m.

Question was seen: 4,196 times

Last updated: Jun 16 '14, 8:41 a.m.

Confirmation Cancel Confirm