use of org.b3log.solo.event.comment.PageCommentReplyNotifier in project solo by b3log.
the class SoloServletListener method registerEventProcessor.
/**
* Register event processors.
*/
private void registerEventProcessor() {
Stopwatchs.start("Register Event Processors");
LOGGER.debug("Registering event processors....");
try {
final EventManager eventManager = beanManager.getReference(EventManager.class);
// Comment
eventManager.registerListener(new ArticleCommentReplyNotifier());
eventManager.registerListener(new PageCommentReplyNotifier());
// Article
// eventManager.registerListener(new AddArticleGoogleBlogSearchPinger());
// eventManager.registerListener(new UpdateArticleGoogleBlogSearchPinger());
// Plugin
eventManager.registerListener(new PluginRefresher());
eventManager.registerListener(new ViewLoadEventHandler());
// Sync
eventManager.registerListener(new ArticleSender());
eventManager.registerListener(new ArticleUpdater());
eventManager.registerListener(new CommentSender());
} catch (final Exception e) {
LOGGER.log(Level.ERROR, "Register event processors error", e);
throw new IllegalStateException(e);
}
LOGGER.debug("Registering event processors....");
Stopwatchs.end();
}
Aggregations