@Test public void testFeatureServiceIsSet() throws ServletException { SimpleFlipBootstrapServlet servlet = new SimpleFlipBootstrapServlet(); servlet.init(mock(ServletConfig.class)); assertNotNull(FlipContext.getFeatureService()); }
@Override public void init(ServletConfig config) throws ServletException { this.config = config; String packagePath = config.getInitParameter(PACKAGE_PATH); FeatureServiceReflectionFactory factory = new FeatureServiceReflectionFactory(); FeatureService service = factory.createFeatureService(getPackagesToSearch(packagePath)); FlipContext.setFeatureService(service); }
SimpleFlipBootstrapServlet extends HttpServlet { @Override public void init(ServletConfig config) throws ServletException { this.config = config; String packagePath = config.getInitParameter(PACKAGE_PATH); FeatureServiceReflectionFactory factory = new FeatureServiceReflectionFactory(); FeatureService service = factory.createFeatureService(getPackagesToSearch(packagePath)); FlipContext.setFeatureService(service); } }
SimpleFlipBootstrapServlet extends HttpServlet { @Override public void init(ServletConfig config) throws ServletException { this.config = config; String packagePath = config.getInitParameter(PACKAGE_PATH); FeatureServiceReflectionFactory factory = new FeatureServiceReflectionFactory(); FeatureService service = factory.createFeatureService(getPackagesToSearch(packagePath)); FlipContext.setFeatureService(service); }  }
SimpleFlipBootstrapServlet extends HttpServlet { @Override public void init(ServletConfig config) throws ServletException { this.config = config; String packagePath = config.getInitParameter(PACKAGE_PATH); FeatureServiceReflectionFactory factory = new FeatureServiceReflectionFactory(); FeatureService service = factory.createFeatureService(getPackagesToSearch(packagePath)); FlipContext.setFeatureService(service); }  @Override void init(ServletConfig config); @Override ServletConfig getServletConfig(); @Override void service(ServletRequest req, ServletResponse res); @Override String getServletInfo(); @Override void destroy(); }
SimpleFlipBootstrapServlet extends HttpServlet { @Override public void init(ServletConfig config) throws ServletException { this.config = config; String packagePath = config.getInitParameter(PACKAGE_PATH); FeatureServiceReflectionFactory factory = new FeatureServiceReflectionFactory(); FeatureService service = factory.createFeatureService(getPackagesToSearch(packagePath)); FlipContext.setFeatureService(service); }  @Override void init(ServletConfig config); @Override ServletConfig getServletConfig(); @Override void service(ServletRequest req, ServletResponse res); @Override String getServletInfo(); @Override void destroy(); static final String PACKAGE_PATH; }