Skip to content

Instantly share code, notes, and snippets.

@rudrakshbhati
Created August 31, 2019 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rudrakshbhati/c41b0845d29d0e11ebc7cd6883013afd to your computer and use it in GitHub Desktop.
Save rudrakshbhati/c41b0845d29d0e11ebc7cd6883013afd to your computer and use it in GitHub Desktop.
import com.google.inject.Guice;
import com.google.inject.Injector;
public class Main {
public static void main(String[] args) {
Injector injector = Guice.createInjector(new VehicleShoppingModule());
VehicleShopping vehicleShopping = injector.getInstance(VehicleShopping.class);
vehicleShopping.testDrive();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment