comparison src/org/eclipse/jetty/server/handler/ContextHandler.java @ 992:0608a6664bee

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 18 Oct 2016 15:23:25 -0600
parents 688c39c50ee3
children d9d95acded81
comparison
equal deleted inserted replaced
991:688c39c50ee3 992:0608a6664bee
213 try 213 try
214 { 214 {
215 old_context = __context.get(); 215 old_context = __context.get();
216 __context.set(_scontext); 216 __context.set(_scontext);
217 217
218 // defers the calling of super.doStart() 218 super.doStart();
219 startContext();
220 219
221 synchronized(this) 220 synchronized(this)
222 { 221 {
223 _availability = _shutdown?__SHUTDOWN:__AVAILABLE; 222 _availability = _shutdown?__SHUTDOWN:__AVAILABLE;
224 } 223 }
225 } 224 }
226 finally 225 finally
227 { 226 {
228 __context.set(old_context); 227 __context.set(old_context);
229 } 228 }
230 }
231
232 /* ------------------------------------------------------------ */
233 /**
234 * Extensible startContext. this method is called from {@link ContextHandler#doStart()} instead of a call to super.doStart(). This allows derived classes to
235 * insert additional handling (Eg configuration) before the call to super.doStart by this method will start contained handlers.
236 *
237 * @see org.eclipse.jetty.server.handler.ContextHandler.Context
238 */
239 protected void startContext() throws Exception
240 {
241 super.doStart();
242 } 229 }
243 230
244 /* ------------------------------------------------------------ */ 231 /* ------------------------------------------------------------ */
245 public void callContextInitialized (ServletContextListener l, ServletContextEvent e) 232 public void callContextInitialized (ServletContextListener l, ServletContextEvent e)
246 { 233 {