Red Hat Bugzilla – Bug 536184
component needs a way to get the resource version
Last modified: 2014-11-09 17:50:02 EST
There does not seem to be a way for a resource component to get the resource version, as discovered by the discovery component.
Discovery component discovers resources and determines its version while also determining the resource key.
But that information is not transfered to the resource component. I think ResourceContext needs to provide the version that the plugin container was given by the discovery component.
this sounds reasonable and should be a quick fix. just add another field, expose it with a getter, and make sure it's set by the ResourceContext constructor.
we probably need this - at least it makes sense if we are also to do RHQ-546
added "getVersion()" to ResourceContext.
Method to verify, or is this a code change?
<mazz> jweiss: this was an improvement to the plugin API - it is exposed to plugin developers only (not UI users)
I don't know if it's worth developing a test plugin to test this functionality -i'm going to close this with no testing.
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-561
This bug is related to RHQ-546