Undo last commit on QuickStartGenerationConfiguration for listeners.

This commit is contained in:
Jan Bartel 2018-10-11 13:37:55 +11:00
parent 41663d8e5c
commit 45953651e6
1 changed files with 5 additions and 5 deletions

View File

@ -221,11 +221,11 @@ public class QuickStartGeneratorConfiguration extends AbstractConfiguration
.tag("param-value",context.getInitParameter(p))
.closeTag();
if(context.getEventListeners()!=null)
for (EventListener e : context.getEventListeners())
out.openTag("listener",origin(md,e.getClass().getCanonicalName() + ".listener"))
.tag("listener-class",e.getClass().getCanonicalName())
.closeTag();
if (context.getServletHandler().getListeners() != null)
for (ListenerHolder e : context.getServletHandler().getListeners())
out.openTag("listener",origin(md,e.getClassName() + ".listener"))
.tag("listener-class",e.getClassName())
.closeTag();
ServletHandler servlets = context.getServletHandler();