users@jersey.java.net

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

From: DiFrango, Ronald <Ronald.DiFrango_at_capitalone.com>
Date: Sun, 22 Nov 2015 18:05:43 -0500

Pavel,

Thanks for the quick response, that worked like a charm!

Ron DiFrango

From: Pavel Bucek <pavel.bucek_at_oracle.com<mailto:pavel.bucek_at_oracle.com>>
Reply-To: "users_at_jersey.java.net<mailto:users_at_jersey.java.net>" <users_at_jersey.java.net<mailto:users_at_jersey.java.net>>
Date: Sunday, November 22, 2015 at 5:30 PM
To: "users_at_jersey.java.net<mailto:users_at_jersey.java.net>" <users_at_jersey.java.net<mailto:users_at_jersey.java.net>>
Subject: [Jersey] Re: Migration from 2.17 to 2.22.1: CustomAnnotationImpl Removed

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.

________________________________________________________

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.