Hi Steven,
I just read your recent blog entry.
http://www.jroller.com/scolebourne/
so i have some context on what you might be trying to do.
There is another way to plug in string conversion in Jersey see:
https://jersey.dev.java.net/nonav/apidocs/latest/jersey/com/sun/jersey/spi/StringReaderProvider.html
I think that might be better point to plug in Joda-Convert as it will
work for all @*Param including collections of (there is an open bug to
support general collections e.g. Scala stuff, currently it is
hardcoded to List/Set/SortedSet)
Paul.
On Aug 24, 2010, at 12:09 PM, Paul Sandoz wrote:
> Hi Stephen,
>
> It should be possible to inject the type Providers or
> MultivaluedParameterExtractorProvider as fields on your
> InjectableProvider e.g.:
>
> @Context MultivaluedParameterExtractorProvider mpep;
>
> then you can access then in the getInjectable method.
>
> Fields are required because InjectableProvider components are
> slightly special and are instantiated before other injectable stuff
> is registered. Thus Jersey does a second pass with injection one all
> provider-based components have been constructed.
>
> Paul.
>
>
>
> On Aug 23, 2010, at 6:01 PM, Stephen Colebourne wrote:
>
>> Is there any way to access the Providers instance from
>> InjectableProvider?
>>
>> I'm trying to write my own @XxxParam, but I need the Providers and
>> can't find them...
>>
>> Stephen
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>