Skip to content

Instantly share code, notes, and snippets.

@GuiSim
Created January 26, 2017 22:14
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 GuiSim/a58f358033268b255a5fd2378e26b990 to your computer and use it in GitHub Desktop.
Save GuiSim/a58f358033268b255a5fd2378e26b990 to your computer and use it in GitHub Desktop.
List<Module> modules = ... // Get your Guice modules
AutoPropModule autoPropModule = new AutoPropModule("io.pleo", // Package prefix
modules, // Modules to scan
new ArchaiusPropFactory(),
new JacksonParserFactory());
modules.add(autoPropModule);
Injector injector = Guice.createInjector(modules);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment