Created
December 28, 2014 14:08
-
-
Save ivanursul/448f6f104c490b26ce89 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 EmailService implements NotificationService { | |
public boolean sendMessage(final String msg, final String receipient) { | |
//some fancy code to send email | |
System.out.println("Email Message sent to "+receipient+" with message="+msg); | |
return true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment