/* package */ ResourceConfig getWebAppResourceConfig(Map<String, Object> props, WebConfig webConfig) throws ServletException { // Default to using Web app resource config return new WebAppResourceConfig(props, webConfig.getServletContext()); }
/* package */ ResourceConfig getWebAppResourceConfig(Map<String, Object> props, WebConfig webConfig) throws ServletException { // Default to using Web app resource config return new WebAppResourceConfig(props, webConfig.getServletContext()); }
/* package */ ResourceConfig getWebAppResourceConfig(Map<String, Object> props, WebConfig webConfig) throws ServletException { // Default to using Web app resource config return new WebAppResourceConfig(props, webConfig.getServletContext()); }
public static void initialize(WebConfig wc, ResourceConfig rc, WebApplication wa) { ServletContext sc = wc.getServletContext(); Object beanManager = lookup(sc); if (beanManager == null) { LOGGER.config("The CDI BeanManager is not available. JAX-RS CDI support is disabled."); return; } rc.getSingletons().add(new CDIComponentProviderFactory(beanManager, rc, wa)); LOGGER.info("CDI support is enabled"); }
public static void initialize(WebConfig wc, ResourceConfig rc, WebApplication wa) { ServletContext sc = wc.getServletContext(); Object beanManager = lookup(sc); if (beanManager == null) { LOGGER.config("The CDI BeanManager is not available. JAX-RS CDI support is disabled."); return; } rc.getSingletons().add(new CDIComponentProviderFactory(beanManager, rc, wa)); LOGGER.info("CDI support is enabled"); }
private String[] getPaths(String classpath) throws ServletException { final ServletContext context = config.getServletContext(); if (classpath == null) { String[] paths = {
public static void initialize(WebConfig wc, ResourceConfig rc, WebApplication wa) { ServletContext sc = wc.getServletContext(); Object beanManager = lookup(sc); if (beanManager == null) { LOGGER.config("The CDI BeanManager is not available. JAX-RS CDI support is disabled."); return; } rc.getSingletons().add(new CDIComponentProviderFactory(beanManager, rc, wa)); LOGGER.info("CDI support is enabled"); }
private String[] getPaths(String classpath) throws ServletException { final ServletContext context = config.getServletContext(); if (classpath == null) { String[] paths = {
private String[] getPaths(String classpath) throws ServletException { final ServletContext context = config.getServletContext(); if (classpath == null) { String[] paths = {