fix wrong merge from c165d07492

Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
This commit is contained in:
olivier lamy 2018-09-26 12:52:15 +10:00
parent 78c1cc2a6d
commit 45411b694f
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 (_webApp.getServletHandler().getListeners() != null)
for (ListenerHolder e : _webApp.getServletHandler().getListeners())
out.openTag("listener",origin(md,e.getClassName() + ".listener"))
.tag("listener-class",e.getClassName())
.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();
ServletHandler servlets = context.getServletHandler();