Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save ivanursul/33b0de2619d8180b9264 to your computer and use it in GitHub Desktop.
package org.ivanursul.guice.injector;
import org.ivanursul.guice.service.FacebookService;
import org.ivanursul.guice.service.NotificationService;
import com.google.inject.AbstractModule;
public class AppInjector extends AbstractModule {
@Override
protected void configure() {
bind(NotificationService.class).to(FacebookService.class);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment