Search in sources :

Example 1 with MvcBinder

use of org.glassfish.jersey.server.mvc.internal.MvcBinder in project jersey by jersey.

the class MvcFeature method configure.

@Override
public boolean configure(final FeatureContext context) {
    final Configuration config = context.getConfiguration();
    if (!config.isRegistered(ErrorTemplateExceptionMapper.class)) {
        context.register(ErrorTemplateExceptionMapper.class);
        context.register(new MvcBinder());
        return true;
    }
    return false;
}
Also used : Configuration(javax.ws.rs.core.Configuration) MvcBinder(org.glassfish.jersey.server.mvc.internal.MvcBinder) ErrorTemplateExceptionMapper(org.glassfish.jersey.server.mvc.internal.ErrorTemplateExceptionMapper)

Aggregations

Configuration (javax.ws.rs.core.Configuration)1 ErrorTemplateExceptionMapper (org.glassfish.jersey.server.mvc.internal.ErrorTemplateExceptionMapper)1 MvcBinder (org.glassfish.jersey.server.mvc.internal.MvcBinder)1