Skip to content

Commit

Permalink
Update README in nrich-notification and nrich-webmvc module to reflec…
Browse files Browse the repository at this point in the history
…t API changes
  • Loading branch information
agrancaric committed Mar 29, 2022
1 parent 3228bcf commit b98b492
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions nrich-notification/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ To be able to use this library following configuration is required:
}
@Bean
public NotificationResponseService<?> notificationResponseService(NotificationResolverService notificationResolverService) {
public NotificationResponseService notificationResponseService(NotificationResolverService notificationResolverService) {
return new WebMvcNotificationResponseService(notificationResolverService);
}
Expand Down Expand Up @@ -62,7 +62,7 @@ advice would look something like this:
@RequiredArgsConstructor
public class NotificationErrorHandlingRestControllerAdvice {
private NotificationResponseService<?> notificationResponseService;
private NotificationResponseService notificationResponseService;
@ExceptionHandler(Exception.class)
public ResponseEntity<?> handleException(Exception exception, HttpServletRequest request) {
Expand Down Expand Up @@ -93,7 +93,7 @@ Users can also use `NotificationResponseService` to return notifications with re
@RequiredArgsConstructor
public class NotificationTestController {
private NotificationResponseService<ResponseWithNotification<?>> notificationResponseService;
private NotificationResponseService notificationResponseService;
private ExampleService exampleService;
Expand Down
2 changes: 1 addition & 1 deletion nrich-webmvc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ nrich-webmvc depends on nrich-logging and nrich-notification libraries but users
}
@Bean
public NotificationErrorHandlingRestControllerAdvice notificationErrorHandlingRestControllerAdvice(NotificationResponseService<?> notificationResponseService, LoggingService loggingService, ExceptionAuxiliaryDataResolverService exceptionAuxiliaryDataResolverService, ExceptionHttpStatusResolverService exceptionHttpStatusResolverService) {
public NotificationErrorHandlingRestControllerAdvice notificationErrorHandlingRestControllerAdvice(BaseNotificationResponseService<?> notificationResponseService, LoggingService loggingService, ExceptionAuxiliaryDataResolverService exceptionAuxiliaryDataResolverService, ExceptionHttpStatusResolverService exceptionHttpStatusResolverService) {
return new NotificationErrorHandlingRestControllerAdvice(Collections.singletonList(ExecutionException.class.getName()), Collections.singletonList("uuid"), notificationResponseService, loggingService, exceptionAuxiliaryDataResolverService, exceptionHttpStatusResolverService);
}
Expand Down

0 comments on commit b98b492

Please sign in to comment.