You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@edgent.apache.org by "Daniel John Debrunner (JIRA)" <ji...@apache.org> on 2016/04/01 20:23:25 UTC

[jira] [Comment Edited] (QUARKS-106) Implement JsonControlService.getControls()

    [ https://issues.apache.org/jira/browse/QUARKS-106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15222096#comment-15222096 ] 

Daniel John Debrunner edited comment on QUARKS-106 at 4/1/16 6:22 PM:
----------------------------------------------------------------------

I was looking at doing this and it's not easy given how the JSON control service is setup.

So I started wondering what actually is the use case for getControls(), because if multiple controls are returned, how do you know which one to use?
The only use case at the moment is to get the ApplicationServiceMXBean, of which there should only be one.

So does it make more sense to remove getControls() and instead replace it with:

<T> T getControl(String alias, Class<T> controlInterface)

?

Then one is getting a known control mbean.


was (Author: djd):
I was looking at doing this and it's not easy given how the JSON control service is setup.

So I started wondering what actually is the use case for getControls(), because if multiple controls are returned, how do you know which one to use?
The only use case at the moment is to get the ApplicationServiceMXBean, of which there should only be one.

So does it make more sense to remove getControls() and instead replace it with:

<T> T getControl(String alias, Class<T> controlInterface)

?

Then one is getting a known control mean.

> Implement JsonControlService.getControls()
> ------------------------------------------
>
>                 Key: QUARKS-106
>                 URL: https://issues.apache.org/jira/browse/QUARKS-106
>             Project: Quarks
>          Issue Type: Task
>          Components: API
>            Reporter: Victor Dogaru
>            Assignee: Victor Dogaru
>            Priority: Minor
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)