Created
December 28, 2014 14:17
-
-
Save ivanursul/b0cb409aa635db568ee3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.ivanursul.guice.application; | |
| import javax.inject.Inject; | |
| import org.ivanursul.guice.service.NotificationService; | |
| public class DefaultApplication { | |
| private NotificationService service; | |
| @Inject | |
| public DefaultApplication(final NotificationService service) { | |
| this.service = service; | |
| } | |
| public void setService(final NotificationService svc) { | |
| this.service = svc; | |
| } | |
| public boolean sendNotification(final String msg, final String rec) { | |
| return service.sendMessage(msg, rec); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment