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

IEndPointDescriptor without using deprecated INSTANCE

Dear Jazz API experts, 


If I want to get an endpoint of a built-in link type, I could either do it like this (where INSTANCE is deprecated)
IEndPointDescriptor parentEndpoint = ILinkTypeRegistry.INSTANCE.getLinkType("com.ibm.team.workitem.linktype.parentworkitem").getTargetEndPointDescriptor();
or like this (which uses INSTANCE internally:
WorkItemEndPoints.PARENT_WORK_ITEM
I'm using a custom link type, so I have to stick with
IEndPointDescriptor myEndpoint = ILinkTypeRegistry.INSTANCE.getLinkType("com.my.company.linktype.mycustomlink").getTargetEndPointDescriptor();
Is there a way to get the EndpointDescriptor without using a deprecated API?

Happy new year to all of you and thanks in advance for your help,
Lukas

0 votes


Be the first one to answer this question!

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,934
× 457
× 233
× 89
× 51

Question asked: Jan 03 '19, 4:04 a.m.

Question was seen: 2,475 times

Last updated: Jan 03 '19, 4:07 a.m.

Confirmation Cancel Confirm