/** * Load the Web application. This will create, configure and initiate * the web application. */ public void load() { WebApplication _application = create(); configure(config, resourceConfig, _application); initiate(resourceConfig, _application); application = _application; }
/** * Load the Web application. This will create, configure and initiate * the web application. */ public void load() { WebApplication _application = create(); configure(config, resourceConfig, _application); initiate(resourceConfig, _application); application = _application; }
/** * Load the Web application. This will create, configure and initiate * the web application. */ public void load() { WebApplication _application = create(); configure(config, resourceConfig, _application); initiate(resourceConfig, _application); application = _application; }
/** * Reload the Web application. This will create and initiate the web * application using the same {@link ResourceConfig} implementation * that was used to load the Web application. * <p/> * This method may be called at runtime, more than once, to reload the * Web application. For example, if a {@link ResourceConfig} implementation * is capable of detecting changes to resource classes (addition or removal) * or providers then this method may be invoked to reload the web * application for such changes to take effect. * <p/> * If this method is called when there are pending requests then such * requests will be processed using the previously loaded web application. */ public void onReload() { WebApplication oldApplication = application; WebApplication newApplication = create(); initiate(resourceConfig, newApplication); application = newApplication; if (resourceConfig instanceof ReloadListener) ((ReloadListener) resourceConfig).onReload(); oldApplication.destroy(); }
/** * Reload the Web application. This will create and initiate the web * application using the same {@link ResourceConfig} implementation * that was used to load the Web application. * <p/> * This method may be called at runtime, more than once, to reload the * Web application. For example, if a {@link ResourceConfig} implementation * is capable of detecting changes to resource classes (addition or removal) * or providers then this method may be invoked to reload the web * application for such changes to take effect. * <p/> * If this method is called when there are pending requests then such * requests will be processed using the previously loaded web application. */ public void onReload() { WebApplication oldApplication = application; WebApplication newApplication = create(); initiate(resourceConfig, newApplication); application = newApplication; if (resourceConfig instanceof ReloadListener) ((ReloadListener) resourceConfig).onReload(); oldApplication.destroy(); }
/** * Reload the Web application. This will create and initiate the web * application using the same {@link ResourceConfig} implementation * that was used to load the Web application. * <p/> * This method may be called at runtime, more than once, to reload the * Web application. For example, if a {@link ResourceConfig} implementation * is capable of detecting changes to resource classes (addition or removal) * or providers then this method may be invoked to reload the web * application for such changes to take effect. * <p/> * If this method is called when there are pending requests then such * requests will be processed using the previously loaded web application. */ public void onReload() { WebApplication oldApplication = application; WebApplication newApplication = create(); initiate(resourceConfig, newApplication); application = newApplication; if (resourceConfig instanceof ReloadListener) ((ReloadListener) resourceConfig).onReload(); oldApplication.destroy(); }