Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

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