Class<?>[] interceptors = a.interceptors();
List<AtmosphereInterceptor> l = new LinkedList<AtmosphereInterceptor>();
for (Class i : interceptors) {
try {
AtmosphereInterceptor ai = (AtmosphereInterceptor) framework.newClassInstance(AtmosphereHandler.class, i);
l.add(ai);
} catch (Throwable e) {
logger.warn("", e);
}
}
if (a.path().contains("{")) {
framework.interceptors().add(framework.newClassInstance(AtmosphereInterceptor.class, AtmosphereHandlerServiceInterceptor.class));
}
AtmosphereInterceptor aa = listeners(a.listeners(), framework);
if (aa != null) {
l.add(aa);
}
framework.sessionSupport(a.supportSession());