Bug 513531 - Make constructServiceProviderURI method public
Summary: Make constructServiceProviderURI method public
Status: NEW
Alias: None
Product: Lyo
Classification: Technology
Component: Tools (show other bugs)
Version: 2.1.0   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: 2.x.x   Edit
Assignee: Jad El-khoury CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-12 13:21 EDT by Andrii Berezovskyi CLA
Modified: 2017-03-12 13:21 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrii Berezovskyi CLA 2017-03-12 13:21:08 EDT
Currently, constructServiceProviderURI method is generated automatically as a private static method that allows to construct the URI of the Service Provider from its key (possibly composite).

The adaptor developer might need to create SP URIs inside the adaptor consistently for other purposes than providing OSLC responses.

In the an adaptor I used to test the proposed change, I ended up:

1) making constructServiceProviderURI method provider public
2) defining an interface ServiceProviderUriConstructor with a single method that is identical to constructServiceProviderURI so that I can make the code that needs such URI not dependent on the name and package of the generated class that holds constructServiceProviderURI.

Do you think that I should create a patch for at least (1) and possibly somehow adapted (2)?