Add registration for backward compatibility

This commit is contained in:
nishantmonu51 2014-01-10 02:02:06 +05:30
parent d28f9daccb
commit da01c4a78a
1 changed files with 3 additions and 0 deletions

View File

@ -86,6 +86,9 @@ public class EventReceiverFirehoseFactory implements FirehoseFactory
if (chatHandlerProvider.isPresent()) {
log.info("Found chathandler of class[%s]", chatHandlerProvider.get().getClass().getName());
chatHandlerProvider.get().register(serviceName, firehose);
if (serviceName.contains(":")) {
chatHandlerProvider.get().register(serviceName.replaceAll(".*:", ""), firehose); // rofl
}
} else {
log.info("No chathandler detected");
}