Created
October 20, 2011 17:32
-
-
Save rcarneiro/1301743 to your computer and use it in GitHub Desktop.
Some codes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//new code added to the assignment | |
//Logic that makes an reconnection if occur some fail | |
final AsyncHttpClient asyncHttpClient = new AsyncHttpClient( | |
new AsyncHttpClientConfig.Builder() | |
.addIOExceptionFilter(new ReconnectionIOExceptionFilter()).build()); | |
//Spring | |
/** | |
* Starts the Spring Framework and get the bean. | |
* | |
* @return an Keywords object | |
*/ | |
public Keywords getKeywords() { | |
final AnnotationConfigApplicationContext annConfigAppContext = new AnnotationConfigApplicationContext( | |
KeywordsConfiguration.class); | |
final Keywords keywords = annConfigAppContext.getBean("keywords", | |
Keywords.class); | |
return keywords; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment