Skip to content

Instantly share code, notes, and snippets.

@ivanursul
Created December 28, 2014 14:12
Show Gist options
  • Select an option

  • Save ivanursul/a4a8ad0c60a2ecc8fe2a to your computer and use it in GitHub Desktop.

Select an option

Save ivanursul/a4a8ad0c60a2ecc8fe2a to your computer and use it in GitHub Desktop.
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