[
https://issues.apache.org/jira/browse/WINK-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12728539#action_12728539
]
Nadav Fischer commented on WINK-55:
-----------------------------------
I agree, and StreamSource sounds good.
But how about instead of adding a new PlainSourceProvider, add another
condition to the StreamSourceProvider.isReadable, like so:
{code}
public boolean isReadable(Class<?> type, Type genericType, Annotation[]
annotations, MediaType mediaType) {
return ((StreamSource.class == type || Source.class == type) &&
super.isReadable(mediaType));
}
{code}
What do you think?
> Source entity parameters should also be supported according to spec
> -------------------------------------------------------------------
>
> Key: WINK-55
> URL: https://issues.apache.org/jira/browse/WINK-55
> Project: Wink
> Issue Type: Bug
> Components: Common
> Affects Versions: 0.1
> Reporter: Bryant Luk
> Attachments: WINK-55.patch
>
>
> Plain "Source" parameters should be supported as a builtin provider. I don't
> think this messes up any of the other Source providers due to the isReadable
> doing ==.
> {code}
> @GET
> public void getSource(Source someSource) {
> }
> {code}
> I'll attach a patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.