Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Added automatic configuration of JAXRS Connector HTTP Services base path... #167

Merged
merged 1 commit into from Jan 19, 2015

Conversation

kolkoo
Copy link
Contributor

@kolkoo kolkoo commented Jan 19, 2015

... to /rest at rest bundle activation time.

Signed-off-by: IVAN GEORGIEV ILIEV ivan.iliev@musala.com

@kaikreuzer
Copy link
Contributor

If for some reason the ConfigAdmin is not available during startup of this bundle, the setting would not work. Might it make sense to do the configuration in the RootResource (which as a component depends on ConfigurationAdmin)?

}

String rootAlias = (String) properties.get(JAXRS_CONNECTOR_PROPERTY);
if (!MDNSAnnouncer.REST_SERVLET_ALIAS.equals(rootAlias)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might make sense to move this constant from MDNSAnnouncer to RootResource, what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I can create a utility constants class where all the configuration constants can be stored?

…ath to /rest at rest bundle activation time.

Signed-off-by: IVAN GEORGIEV ILIEV <ivan.iliev@musala.com>
kaikreuzer added a commit that referenced this pull request Jan 19, 2015
Added automatic configuration of JAXRS Connector HTTP Services base path...
@kaikreuzer kaikreuzer merged commit d3defb3 into eclipse-archived:master Jan 19, 2015
@kaikreuzer kaikreuzer deleted the rest-configuration branch January 19, 2015 13:08
danchom pushed a commit to danchom/smarthome that referenced this pull request Oct 16, 2015
…-rules

restored launch configuration with bundles for rest and script support
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants