/**
* Register event processors.
*/
private void registerEventProcessor() {
try {
final EventManager eventManager = EventManager.getInstance();
/**
* See issue 38 (http://code.google.com/p/b3log-solo/issues/detail?id=38)
* for more details.
*
* new ActivityCreator(eventManager);
*/
eventManager.registerListener(new TencentMicroblogSender());
eventManager.registerListener(new ArticleCommentReplyNotifier());
eventManager.registerListener(new PageCommentReplyNotifier());
eventManager.registerListener(new AddArticleGoogleBlogSearchPinger());
eventManager.registerListener(
new UpdateArticleGoogleBlogSearchPinger());
eventManager.registerListener(new ArticleSender());
/*
* See issue 225 (http://code.google.com/p/b3log-solo/issues/detail?id=225#c4)
* for more details.
*
* eventManager.registerListener(new BlogJavaAddArticleProcessor());
* eventManager.registerListener(new BlogJavaRemoveArticleProcessor());
* eventManager.registerListener(new BlogJavaUpdateArticleProcessor());
* eventManager.registerListener(new CSDNBlogAddArticleProcessor());
* eventManager.registerListener(new CSDNBlogRemoveArticleProcessor());
* eventManager.registerListener(new CSDNBlogUpdateArticleProcessor());
* eventManager.registerListener(new CnBlogsAddArticleProcessor());
* eventManager.registerListener(new CnBlogsRemoveArticleProcessor());
* eventManager.registerListener(new CnBlogsUpdateArticleProcessor());
*/
eventManager.registerListener(new PluginRefresher());
eventManager.registerListener(new ViewLoadEventHandler());
} catch (final Exception e) {
LOGGER.log(Level.SEVERE, "Register event processors error", e);
throw new IllegalStateException(e);
}
}