185186187188189190191192193194
// perform silent creation and manual shutdown registration atomic.init(); destroyQueue.add(context); } } context.addListener(this); } } } }
125126127128129130131132133134135
ctxs.put(context.getName(), context); List<Context> shutdownQueue = destroyQueues.get(getEventContext().getIdentifier(HttpSessionEvent.HTTP_IDENTIFIER)); synchronized (shutdownQueue) { shutdownQueue.add(context); } context.addListener(this); } } return context; }
206207208209210211212213214215216
synchronized (shutdownQueue) { shutdownQueue.add(context); } } } context.addListener(this); } return sessionContext; } /**
181182183184185186187188189190191
synchronized(shutdownQueue){ shutdownQueue.add(context); } } } context.addListener(this); } contexts.put(Thread.currentThread(), requestContexts); destroyQueues.put(Thread.currentThread(), shutdownQueue); } return requestContexts;