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:18:25 UTC

[jira] [Commented] (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 commented on QUARKS-106:
----------------------------------------------

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
>            Priority: Minor
>




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