[mule-jira] Created: (IBEANS-132) Some APIs have a lot of optionl parameters. Its not always feesible to add a method param for each one. Consider introducing a @UriParamMap annotation

View: New views
4 Messages — Rating Filter:   Alert me  

[mule-jira] Created: (IBEANS-132) Some APIs have a lot of optionl parameters. Its not always feesible to add a method param for each one. Consider introducing a @UriParamMap annotation

by JIRA no-reply@mulesource.com :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message


Some APIs have a lot of optionl parameters. Its not always feesible to add a method param for each one. Consider introducing a @UriParamMap annotation
------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: IBEANS-132
                 URL: http://www.mulesource.org/jira/browse/IBEANS-132
             Project: iBeans
          Issue Type: New Feature
          Components: Annotations
    Affects Versions: Beta 8
            Reporter: Ross Mason


There may be no need for a new annotation but I would like to add the following functionality -

1) allow users to set UriParams as a map,
2) any params not in the map can be ignored
3) The param needs to describe the possible values in some way i.e.

public <T> T myMethod(@UriParam(foo, bar, baz) Map uriParams)

here a developer could pass in a foo and baz value, the bar value would be nulled since setting params this way would only work for optional parameters

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.mulesource.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MuleForge Dev" group.
To post to this group, send email to muleforgedev@...
To unsubscribe from this group, send email to muleforgedev+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/muleforgedev?hl=en
-~----------~----~----~----~------~----~------~--~---


[mule-jira] Assigned: (IBEANS-132) Some APIs have a lot of optionl parameters. Its not always feesible to add a method param for each one. Consider introducing a @UriParamMap annotation

by JIRA no-reply@mulesource.com :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message



     [ http://www.mulesource.org/jira/browse/IBEANS-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ross Mason reassigned IBEANS-132:
---------------------------------

    Assignee: Ross Mason

> Some APIs have a lot of optionl parameters. Its not always feesible to add a method param for each one. Consider introducing a @UriParamMap annotation
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: IBEANS-132
>                 URL: http://www.mulesource.org/jira/browse/IBEANS-132
>             Project: iBeans
>          Issue Type: New Feature
>          Components: Annotations
>    Affects Versions: Beta 8
>            Reporter: Ross Mason
>            Assignee: Ross Mason
>
> There may be no need for a new annotation but I would like to add the following functionality -
> 1) allow users to set UriParams as a map,
> 2) any params not in the map can be ignored
> 3) The param needs to describe the possible values in some way i.e.
> public <T> T myMethod(@UriParam(foo, bar, baz) Map uriParams)
> here a developer could pass in a foo and baz value, the bar value would be nulled since setting params this way would only work for optional parameters

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.mulesource.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MuleForge Dev" group.
To post to this group, send email to muleforgedev@...
To unsubscribe from this group, send email to muleforgedev+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/muleforgedev?hl=en
-~----------~----~----~----~------~----~------~--~---


[mule-jira] Updated: (IBEANS-132) Some APIs have a lot of optionl parameters. Its not always feesible to add a method param for each one. Consider introducing a @UriParamMap annotation

by JIRA no-reply@mulesource.com :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message



     [ http://www.mulesource.org/jira/browse/IBEANS-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ross Mason updated IBEANS-132:
------------------------------

    Priority: Major  (was: To be reviewed)

> Some APIs have a lot of optionl parameters. Its not always feesible to add a method param for each one. Consider introducing a @UriParamMap annotation
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: IBEANS-132
>                 URL: http://www.mulesource.org/jira/browse/IBEANS-132
>             Project: iBeans
>          Issue Type: New Feature
>          Components: Annotations
>    Affects Versions: Beta 8
>            Reporter: Ross Mason
>            Assignee: Ross Mason
>            Priority: Major
>
> There may be no need for a new annotation but I would like to add the following functionality -
> 1) allow users to set UriParams as a map,
> 2) any params not in the map can be ignored
> 3) The param needs to describe the possible values in some way i.e.
> public <T> T myMethod(@UriParam(foo, bar, baz) Map uriParams)
> here a developer could pass in a foo and baz value, the bar value would be nulled since setting params this way would only work for optional parameters

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.mulesource.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "MuleForge Dev" group.
To post to this group, send email to muleforgedev@...
To unsubscribe from this group, send email to muleforgedev+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/muleforgedev?hl=en
-~----------~----~----~----~------~----~------~--~---


[mule-jira] Closed: (IBEANS-132) Some APIs have a lot of optionl parameters. Its not always feesible to add a method param for each one. Consider introducing a @UriParamMap annotation

by JIRA no-reply@mulesource.com :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message


     [ http://www.mulesource.org/jira/browse/IBEANS-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ross Mason closed IBEANS-132.
-----------------------------

       Resolution: Fixed
    Fix Version/s: Beta 9

Rather than adding a new annotation, the @UriParam annotation can be used with a Map.  in this scenario a  comma,separated list of param names are provided and the values inside the Map use these as key names.  ie.e.

public <T> T doSomething(@UriParam("foo, bar, baz") Map params);

Each param in the map is optional, so "foo" and "baz" can be set and "bar" will be ignored and removed from the URI template.

> Some APIs have a lot of optionl parameters. Its not always feesible to add a method param for each one. Consider introducing a @UriParamMap annotation
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: IBEANS-132
>                 URL: http://www.mulesource.org/jira/browse/IBEANS-132
>             Project: iBeans
>          Issue Type: New Feature
>          Components: Annotations
>    Affects Versions: Beta 8
>            Reporter: Ross Mason
>            Assignee: Ross Mason
>            Priority: Major
>             Fix For: Beta 9
>
>
> There may be no need for a new annotation but I would like to add the following functionality -
> 1) allow users to set UriParams as a map,
> 2) any params not in the map can be ignored
> 3) The param needs to describe the possible values in some way i.e.
> public <T> T myMethod(@UriParam(foo, bar, baz) Map uriParams)
> here a developer could pass in a foo and baz value, the bar value would be nulled since setting params this way would only work for optional parameters

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.mulesource.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

--

You received this message because you are subscribed to the Google Groups "MuleForge Dev" group.
To post to this group, send email to muleforgedev@....
For more options, visit this group at http://groups.google.com/group/muleforgedev?hl=.