users@jersey.java.net

[Jersey] Re: Migration from 2.17 to 2.22.1: CustomAnnotationImpl Removed

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Sun, 22 Nov 2015 23:30:46 +0100

Hi Ron,

CustomAnnotationImpl has been refactored and renamed to
CustomAnnotationLiteral.

Your code should now use ".qualifiedBy(CustomAnnotationLiteral.INSTANCE).

Regards,
Pavel

On 22/11/15 23:21, DiFrango, Ronald wrote:
> Jersey Team,
>
> We are attempting to upgrade from 2.17 to 2.22.1 and it appears as
> though the CustomAnnotationImpl has been removed. We were using it to
> bind our converter to the ParamConverterProvider and were doing it as
> follows:
>
> public static class Binder extends AbstractBinder {
> @Override
> protected void configure() {
> bind(LocalDateParamConverterProvider.class).to(ParamConverterProvider.class).in(Singleton.class)
> .qualifiedBy(new CustomAnnotationImpl());
> }
> }
>
>
> What is the way that we should do this in 2.22.1?
>
> Thanks,
>
> Ron DiFrango
>
>
> ------------------------------------------------------------------------
>
> The information contained in this e-mail is confidential and/or
> proprietary to Capital One and/or its affiliates and may only be used
> solely in performance of work or services for Capital One. The
> information transmitted herewith is intended only for use by the
> individual or entity to which it is addressed. If the reader of this
> message is not the intended recipient, you are hereby notified that
> any review, retransmission, dissemination, distribution, copying or
> other use of, or taking of any action in reliance upon this
> information is strictly prohibited. If you have received this
> communication in error, please contact the sender and delete the
> material from your computer.
>