Introduction
...
- See IntelliJ IDEA 13: Importing Code Formatter Settings from Eclipse for instructions on how to use build-tools/src/main/resource/eclipse-xml-settings.epf.
- The following settings needs manual setup, as these aren't imported from Eclipse:
- Tabs and indents:
- Continuation indent should be 4.
- Javadoc:
- Do not wrap on line javadoc comment needs to be enabled
- Import statement
- Order must be manually defined, see specification above
- Tabs and indents:
...
Code Block |
---|
public JobSupervisor(Provider<JobDAO> jobDaoProvider, Provider<Long> jobTimeoutProvider) { |
The Provider<X> interface provides a get() method returning X. This allows for lazy initialization and/or providing an unknown number of X'es.
Further reading:
- http://www.vogella.com/tutorials/DependencyInjection/article.html
- http://square.github.io/dagger/
- http://www.infoq.com/presentations/Dagger
...