[jboss-as7-dev] "Read" operations
Heiko Braun
hbraun at redhat.com
Fri Jan 14 04:56:03 EST 2011
I would stick to "read" as well.
Simply to avoid ambiguity across API clients.
I.e. a REST "GET" means you have no obligations when doing the call,
a Java "get()" imposes that most of the time, but not necessarily (think factory pattern).
IMO choosing explicit operation names is a good idea.
I.e. I would prefer:
- "read" over "get"
- "write" over "set"
- "create" over "set"
- "remove" over "set"
I hope that explains what I was trying to say.
Ike
On Jan 13, 2011, at 11:31 PM, Kabir Khan wrote:
>
> The main reason I did 'read' was that at the time it felt weird to have GlobalDescriptions.getGetXXXX(), so I can change that.
> I assume you want to keep f) as "read" or do you want that to be "get" as well?
More information about the jboss-as7-dev
mailing list