Created
December 28, 2014 14:12
-
-
Save ivanursul/a4a8ad0c60a2ecc8fe2a 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.service; | |
| import javax.inject.Singleton; | |
| @Singleton | |
| public class FacebookService implements NotificationService { | |
| public boolean sendMessage(final String msg, final String receipient) { | |
| //some complex code to send Facebook message | |
| System.out.println("Message sent to Facebook user "+receipient+" with message="+msg); | |
| return true; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment