Skip to content

Commit

Permalink
Fix for #78
Browse files Browse the repository at this point in the history
  • Loading branch information
jfarcand committed Sep 24, 2012
1 parent 3ade4ac commit 0b8bbcf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ private AtmosphereFramework addMapping(String path, AtmosphereHandlerWrapper w)
path = path + MAPPING_REGEX;
}

InjectorProvider.getInjector().inject(w.atmosphereHandler);
atmosphereHandlers.put(path, w);
return this;
}
Expand Down Expand Up @@ -948,7 +949,6 @@ protected void loadAtmosphereDotXml(InputStream stream, URLClassLoader c)

if (!ReflectorServletProcessor.class.getName().equals(atmoHandler.getClassName())) {
handler = (AtmosphereHandler) c.loadClass(atmoHandler.getClassName()).newInstance();
InjectorProvider.getInjector().inject(handler);
} else {
handler = new ReflectorServletProcessor();
}
Expand Down

0 comments on commit 0b8bbcf

Please sign in to comment.