/** * Returns the Jersey {@link org.glassfish.jersey.server.ApplicationHandler} instance * * @return the application handler instance */ @Override public ApplicationHandlerDelegate getApplicationHandler() { ApplicationHandler handler = new ApplicationHandler(getResourceConfig(), null, locator); return new DefaultApplicationHandlerDelegate(handler); }
@Override public ApplicationHandlerDelegate getApplicationHandlerDelegate() { if (applicationHandlerDelegate == null) { ResourceConfig rc = createConfiguration(); ApplicationHandler applicationHandler = new ApplicationHandler(rc, null, locator); applicationHandlerDelegate = new DefaultApplicationHandlerDelegate(applicationHandler); } return applicationHandlerDelegate; }
@Override public ApplicationHandlerDelegate getApplicationHandlerDelegate() { if (applicationHandlerDelegate == null) { ResourceConfig rc = createConfiguration(); ApplicationHandler applicationHandler = new ApplicationHandler(rc, null, locator); applicationHandlerDelegate = new DefaultApplicationHandlerDelegate(applicationHandler); } return applicationHandlerDelegate; }
/** * Reload the hosted Jersey application using a new {@link ResourceConfig * configuration}. * * @param configuration new configuration used for the reload. */ @Override public void reload(ResourceConfig configuration) { ApplicationHandler applicationHandler = new ApplicationHandler(configuration, null, locator); applicationHandlerDelegate = new DefaultApplicationHandlerDelegate(applicationHandler); getApplicationHandler().onReload(this); applicationHandler.onStartup(this); }
/** * Reload the hosted Jersey application using a new {@link ResourceConfig * configuration}. * * @param configuration new configuration used for the reload. */ @Override public void reload(ResourceConfig configuration) { ApplicationHandler applicationHandler = new ApplicationHandler(configuration, null, locator); applicationHandlerDelegate = new DefaultApplicationHandlerDelegate(applicationHandler); getApplicationHandler().onReload(this); applicationHandler.onStartup(this); }