org.glassfish.jersey.server.model.ModelProcessor Java Examples
The following examples show how to use
org.glassfish.jersey.server.model.ModelProcessor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RsAddonFeature.java From ameba with MIT License | 6 votes |
@Override protected void configure() { bind(OptionsMethodProcessor.DefaultOptionsResponseGenerator.class) .to(OptionsResponseGenerator.class) .in(Singleton.class); bind(OptionsMethodProcessor.class) .to(ModelProcessor.class) .in(Singleton.class); bind(ParamConverters.TypeFromStringEnum.class) .to(ParamConverterProvider.class) .in(Singleton.class).ranked(10); bind(ParamConverters.DateProvider.class) .to(ParamConverterProvider.class) .in(Singleton.class).ranked(10); bind(ParamConverters.BooleanProvider.class) .to(ParamConverterProvider.class) .in(Singleton.class).ranked(10); }
Example #2
Source File: MvcBinder.java From ameba with MIT License | 5 votes |
/** * {@inheritDoc} */ @Override protected void configure() { bind(TemplateMethodInterceptor.class).to(WriterInterceptor.class).in(Singleton.class); //noinspection unchecked bind(ViewableMessageBodyWriter.class).to(MessageBodyWriter.class).in(Singleton.class); bind(TemplateModelProcessor.class).to(ModelProcessor.class).in(Singleton.class); bindAsContract(ResolvingViewableContext.class).in(Singleton.class); bind(ResolvingViewableContext.class).to(ViewableContext.class).in(Singleton.class).ranked(1); }