Skip to content

Instantly share code, notes, and snippets.

@manstis
Created March 28, 2013 16:31
Show Gist options
  • Select an option

  • Save manstis/5264674 to your computer and use it in GitHub Desktop.

Select an option

Save manstis/5264674 to your computer and use it in GitHub Desktop.
All an app needs to do...
@ApplicationScoped
public class AppSetup {
private final DefaultSystemRepository systemRepository = new DefaultSystemRepository();
private final IOService ioService = new IOServiceDotFileImpl();
@Produces
@Named("ioStrategy")
public IOService ioService() {
return ioService;
}
@Produces
@Named("system")
public Repository systemRepository() {
return systemRepository;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment