Created
December 28, 2014 14:16
-
-
Save ivanursul/71429d73d4d58088ae45 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 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