It's all about the answers!

Ask a question

IEndPointDescriptor without using deprecated INSTANCE

Lukas Steiger (3131625) | asked Jan 03 '19, 4:04 a.m.
edited Jan 03 '19, 4:07 a.m.

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("").getTargetEndPointDescriptor();
or like this (which uses INSTANCE internally:
I'm using a custom link type, so I have to stick with
IEndPointDescriptor myEndpoint = ILinkTypeRegistry.INSTANCE.getLinkType("").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,

Be the first one to answer this question!

Register or to post your answer.