Bug 536184 (RHQ-561) - component needs a way to get the resource version
Summary: component needs a way to get the resource version
Keywords:
Status: CLOSED NEXTRELEASE
Alias: RHQ-561
Product: RHQ Project
Classification: Other
Component: Plugin Container
Version: 1.0
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: John Mazzitelli
QA Contact: Jeff Weiss
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-06-11 03:22 UTC by John Mazzitelli
Modified: 2014-11-09 22:50 UTC (History)
1 user (show)

Fixed In Version: 1.2
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description John Mazzitelli 2008-06-11 03:22:00 UTC
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.

Comment 1 Joseph Marques 2008-07-19 23:24:51 UTC
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.

Comment 2 John Mazzitelli 2009-02-05 21:40:17 UTC
we probably need this - at least it makes sense if we are also to do RHQ-546

Comment 3 John Mazzitelli 2009-02-07 05:54:07 UTC
added "getVersion()" to ResourceContext.

Comment 4 Corey Welton 2009-03-25 02:33:28 UTC
Method to verify, or is this a code change?


Comment 5 Jeff Weiss 2009-03-31 17:14:52 UTC
<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.

Comment 6 Red Hat Bugzilla 2009-11-10 21:11:57 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-561
This bug is related to RHQ-546



Note You need to log in before you can comment on or make changes to this bug.