/** * Sets the exception handlers of the annotated service object. */ public AnnotatedServiceRegistrationBean setExceptionHandlers( ExceptionHandlerFunction... exceptionHandlers) { return setExceptionHandlers(ImmutableList.copyOf(exceptionHandlers)); }
/** * Sets the exception handlers of the annotated service object. */ public AnnotatedServiceRegistrationBean setExceptionHandlers( ExceptionHandlerFunction... exceptionHandlers) { return setExceptionHandlers(ImmutableList.copyOf(exceptionHandlers)); }
@Bean public AnnotatedServiceRegistrationBean annotatedService() { return new AnnotatedServiceRegistrationBean() .setServiceName("annotatedService") .setService(new AnnotatedService()) .setPathPrefix("/annotated") .setDecorators(LoggingService.newDecorator()) .setExceptionHandlers(ImmutableList.of(new IllegalArgumentExceptionHandler())) .setRequestConverters(ImmutableList.of(new StringRequestConverterFunction())) .setResponseConverters(ImmutableList.of(new StringResponseConverter())); }
/** * Sets the exception handlers of the annotated service object. */ public AnnotatedServiceRegistrationBean setExceptionHandlers( ExceptionHandlerFunction... exceptionHandlers) { return setExceptionHandlers(ImmutableList.copyOf(exceptionHandlers)); }
/** * Sets the exception handlers of the annotated service object. */ public AnnotatedServiceRegistrationBean setExceptionHandlers( ExceptionHandlerFunction... exceptionHandlers) { return setExceptionHandlers(ImmutableList.copyOf(exceptionHandlers)); }