@Test public void createsDependencySupplier() { EverrestServletContextInitializer everrestServletContextInitializer = new EverrestServletContextInitializer(servletContext); DependencySupplier dependencySupplier = everrestServletContextInitializer.getDependencySupplier(); assertTrue(String.format("ServletContextDependencySupplier is expected to be created but %s found", dependencySupplier), dependencySupplier instanceof ServletContextDependencySupplier); }
public DependencySupplier getDependencySupplier() { DependencySupplier dependencySupplier = (DependencySupplier)servletContext.getAttribute(DependencySupplier.class.getName()); if (dependencySupplier == null) { dependencySupplier = new ServletContextDependencySupplier(servletContext); } return dependencySupplier; }
EverrestServletContextInitializer { public DependencySupplier getDependencySupplier() { DependencySupplier dependencySupplier = (DependencySupplier)servletContext.getAttribute(DependencySupplier.class.getName()); if (dependencySupplier == null) { dependencySupplier = new ServletContextDependencySupplier(servletContext); } return dependencySupplier; } }
EverrestServletContextInitializer { public DependencySupplier getDependencySupplier() { DependencySupplier dependencySupplier = (DependencySupplier)servletContext.getAttribute(DependencySupplier.class.getName()); if (dependencySupplier == null) { dependencySupplier = new ServletContextDependencySupplier(servletContext); } return dependencySupplier; } EverrestServletContextInitializer(ServletContext servletContext); }
EverrestServletContextInitializer { public DependencySupplier getDependencySupplier() { DependencySupplier dependencySupplier = (DependencySupplier)servletContext.getAttribute(DependencySupplier.class.getName()); if (dependencySupplier == null) { dependencySupplier = new ServletContextDependencySupplier(servletContext); } return dependencySupplier; } EverrestServletContextInitializer(ServletContext servletContext); Application getApplication(); EverrestConfiguration createConfiguration(); RequestHandler createRequestHandler(); RequestDispatcher createRequestDispatcher(); ResourceBinder createResourceBinder(); DependencySupplier getDependencySupplier(); ProviderBinder createProviderBinder(); EverrestProcessor createEverrestProcessor(); }
EverrestServletContextInitializer { public DependencySupplier getDependencySupplier() { DependencySupplier dependencySupplier = (DependencySupplier)servletContext.getAttribute(DependencySupplier.class.getName()); if (dependencySupplier == null) { dependencySupplier = new ServletContextDependencySupplier(servletContext); } return dependencySupplier; } EverrestServletContextInitializer(ServletContext servletContext); Application getApplication(); EverrestConfiguration createConfiguration(); RequestHandler createRequestHandler(); RequestDispatcher createRequestDispatcher(); ResourceBinder createResourceBinder(); DependencySupplier getDependencySupplier(); ProviderBinder createProviderBinder(); EverrestProcessor createEverrestProcessor(); static final String EVERREST_SCAN_COMPONENTS; static final String EVERREST_SCAN_SKIP_PACKAGES; static final String JAXRS_APPLICATION; }