Issue #294 Initial enter scope for DebugListener (#3021)

Signed-off-by: Jan Bartel <janb@webtide.com>
This commit is contained in:
Jan Bartel 2018-10-23 17:29:54 +11:00 committed by GitHub
parent 8eb21f84a3
commit 4ababf9888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -678,7 +678,11 @@ public class ContextHandler extends ScopedHandler implements Attributes, Gracefu
_durableListeners.add(listener);
if (listener instanceof ContextScopeListener)
{
_contextListeners.add((ContextScopeListener)listener);
if (__context.get()!=null)
((ContextScopeListener)listener).enterScope(__context.get(),null,"Listener registered");
}
if (listener instanceof ServletContextListener)
_servletContextListeners.add((ServletContextListener)listener);