private ResourceConfig createResourceConfig(WebConfig webConfig) throws ServletException { final Map<String, Object> props = getInitParams(webConfig); final ResourceConfig rc = createResourceConfig(webConfig, props); rc.setPropertiesAndFeatures(props); return rc; }
private ResourceConfig createResourceConfig(WebConfig webConfig) throws ServletException { final Map<String, Object> props = getInitParams(webConfig); final ResourceConfig rc = createResourceConfig(webConfig, props); rc.setPropertiesAndFeatures(props); return rc; }
private ResourceConfig createResourceConfig(WebConfig webConfig) throws ServletException { final Map<String, Object> props = getInitParams(webConfig); final ResourceConfig rc = createResourceConfig(webConfig, props); rc.setPropertiesAndFeatures(props); return rc; }
/** * Initiate the Web component. * * @param webConfig the Web configuration. * @throws javax.servlet.ServletException in case of any initialization error */ public void init(WebConfig webConfig) throws ServletException { config = webConfig; if (resourceConfig == null) resourceConfig = createResourceConfig(config); load(); Object o = resourceConfig.getProperties().get( ResourceConfig.PROPERTY_CONTAINER_NOTIFIER); if (o instanceof List) { List list = (List) o; for (Object elem : list) { if (elem instanceof ContainerNotifier) { ContainerNotifier crf = (ContainerNotifier) elem; crf.addListener(this); } } } else if (o instanceof ContainerNotifier) { ContainerNotifier crf = (ContainerNotifier) o; crf.addListener(this); } }
/** * Initiate the Web component. * * @param webConfig the Web configuration. * @throws javax.servlet.ServletException in case of any initialization error */ public void init(WebConfig webConfig) throws ServletException { config = webConfig; if (resourceConfig == null) resourceConfig = createResourceConfig(config); load(); Object o = resourceConfig.getProperties().get( ResourceConfig.PROPERTY_CONTAINER_NOTIFIER); if (o instanceof List) { List list = (List) o; for (Object elem : list) { if (elem instanceof ContainerNotifier) { ContainerNotifier crf = (ContainerNotifier) elem; crf.addListener(this); } } } else if (o instanceof ContainerNotifier) { ContainerNotifier crf = (ContainerNotifier) o; crf.addListener(this); } }
/** * Initiate the Web component. * * @param webConfig the Web configuration. * @throws javax.servlet.ServletException in case of any initialization error */ public void init(WebConfig webConfig) throws ServletException { config = webConfig; if (resourceConfig == null) resourceConfig = createResourceConfig(config); load(); Object o = resourceConfig.getProperties().get( ResourceConfig.PROPERTY_CONTAINER_NOTIFIER); if (o instanceof List) { List list = (List) o; for (Object elem : list) { if (elem instanceof ContainerNotifier) { ContainerNotifier crf = (ContainerNotifier) elem; crf.addListener(this); } } } else if (o instanceof ContainerNotifier) { ContainerNotifier crf = (ContainerNotifier) o; crf.addListener(this); } }