Skip to content

Commit

Permalink
added JavaDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Polevoy committed Nov 29, 2015
1 parent 38730c1 commit 26711aa
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions activeweb/src/main/java/org/javalite/activeweb/Bootstrap.java
Expand Up @@ -74,11 +74,20 @@ public void setInjector(Injector injector){
/**
* Subclasses need to override this method to return instance of Injector to use for dependency injection.
*
* <p></p>
* <strong>
* <p>
* This method is NOT USED during testing. Each test class will set its own injector
* with mocks for testing.
* </p>
* <p>
* It is important to not create a new instance of injector each time this method is called, but
* rather than return the same instance.
* </p>
* <p>
* No synchronization is needed because the first time
* this method is used, it is done in one thread.
* </p>
*
* </strong>
*
* @return instance of Injector to use to inject dependencies into controllers, filters and tags.
Expand Down

0 comments on commit 26711aa

Please sign in to comment.