Skip to content

Instantly share code, notes, and snippets.

@billy-bacon
Created December 11, 2013 21:23
Show Gist options
  • Save billy-bacon/7918699 to your computer and use it in GitHub Desktop.
Save billy-bacon/7918699 to your computer and use it in GitHub Desktop.
@Component("pushNotificationListProcessor")
public class PushNotificationListProcessor {
private static final Logger log = LoggerFactory.getLogger(PushNotificationMessageProcessor.class);
private final PatronDeviceHelper patronDeviceHelper;
@Autowired
public PushNotificationListProcessor(final PatronDeviceHelper patronDeviceHelper) {
this.patronDeviceHelper = patronDeviceHelper;
}
public List<PatronDevice> process(@Body String message) {
log.info("message received {}", message);
return patronDeviceHelper.getAllPatronDevices();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment