I have a custom MessageBodyWriter and MessageBodyReader. I want to let Jersey to add my provider at the beginning of provider Chain. I registered my Provider like this
I noticed that at client side (clientConfig.register), the provider is always Custom provider. It is always non-custom provider whether I annotate the provider with @org.glassfish.jersey.internal.inject.Custom or not. The same behavior applies to ConfigurableMoxyJsonProvider.
Also the bindingPriority (1000 here) is not honored since my provider is always behind ConfigurableMoxyJsonProvider. I want my provider before ConfigurableMoxyJsonProvider.
How can I make jerset at server-side to know my provider is custom?