/** * Invoke this method when done using the PageTester; it shuts down the internal * {@link org.apache.tapestry5.ioc.Registry} used by the tester. */ public void shutdown() { registry.cleanupThread(); registry.shutdown(); }
public final void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { try { boolean handled = handler.service((HttpServletRequest) request, (HttpServletResponse) response); if (!handled) { chain.doFilter(request, response); } } finally { registry.cleanupThread(); } }
@AfterMethod public final void cleanupThread() { registry.cleanupThread(); }
@AfterSuite public final void shutdown_registry() { if (registry != null) { registry.cleanupThread(); registry.shutdown(); registry = null; } } }
public final void shutdownRegistry() { registry.cleanupThread(); registry.shutdown(); registry = null; }
private TestableResponse runComponentEventRequest() { while (true) { response.clear(); try { boolean handled = requestHandler.service(request, response); if (!handled) throw new RuntimeException(String.format("Request for path '%s' was not handled by Tapestry.", request.getPath())); Link link = response.getRedirectLink(); if (link != null) { setupRequestFromLink(link); continue; } return response; } catch (IOException ex) { throw new RuntimeException(ex); } finally { registry.cleanupThread(); } } }
} finally registry.cleanupThread();
registry.cleanupThread();