Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save ivanursul/b0cb409aa635db568ee3 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 DefaultApplication(final NotificationService service) {
this.service = service;
}
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