', 'FooBar'}, preferred='Foo',
deprecated={'Bar','FooBar'})
-Original Message-
From: Chiradeep Vittal [mailto:chiradeep.vit...@citrix.com]
Sent: Tuesday, 9 April 2013 12:05 PM
To: dev@cloudstack.apache.org
Subject: Re: [Discuss] API name alias
Rohit, that's like saying we won't fix a leaky
On Tue, Apr 9, 2013 at 12:04 PM, Chiradeep Vittal
chiradeep.vit...@citrix.com wrote:
Rohit, that's like saying we won't fix a leaky faucet today because we're
moving in a couple of years anyway. It isn't a big deal to add this and it
clarifies to the end user what is the correct alias to use.
APICommand annotation in API Cmd object has a name parameter. Currently name
parameter takes only one value. I plan to enhance this to support comma
separated values. This will allow multiple API names for the same API Cmd
object.
Current:
@APICommand(name = apiName1, ..
Proposed:
Kishan,
Annotations support the specification of arrays as annotation values which
allows the compiler to verify the form of the value (avoiding a potential
runtime exception due to a typo) and a more expressive value. Annotation array
values are treated as a varargs -- therefore, single
On Mon, Apr 8, 2013 at 6:33 PM, Kishan Kavala kishan.kav...@citrix.comwrote:
APICommand annotation in API Cmd object has a name parameter. Currently
name parameter takes only one value. I plan to enhance this to support
comma separated values. This will allow multiple API names for the same
Rohit,
Why would we need to rewrite any Java code to switch to an array? As I
mentioned, array annotation values are treated as varargs. Therefore,
annotations with single values can be left alone. Only cases where multiple
values are required would require the addition of curly braces.
On 4/8/13 11:18 AM, Rohit Yadav bhais...@apache.org wrote:
On Mon, Apr 8, 2013 at 7:10 PM, John Burwell jburw...@basho.com wrote:
Rohit,
Why would we need to rewrite any Java code to switch to an array? As I
mentioned, array annotation values are treated as varargs. Therefore,
-Original Message-
From: Chiradeep Vittal [mailto:chiradeep.vit...@citrix.com]
Sent: Tuesday, April 9, 2013 3:19 AM
To: dev@cloudstack.apache.org
Subject: Re: [Discuss] API name alias
On 4/8/13 11:18 AM, Rohit Yadav bhais...@apache.org wrote:
On Mon, Apr 8, 2013 at 7:10 PM
...@citrix.com]
Sent: Monday, April 08, 2013 6:34 PM
To: dev@cloudstack.apache.org
Subject: [Discuss] API name alias
APICommand annotation in API Cmd object has a name parameter. Currently
name parameter takes only one value. I plan to enhance this to support
comma separated values
If we are still on our previously discussed plan (search a wiki shared by
Min) on deprecating the whole query based API (Server), it's just
unnecessary work on present APIs. I think for now just changing the name
attribute type from String to String[] would just work, as John suggested.
Adding
10 matches
Mail list logo