Clarify init params in Jersey autoconfig (only servlet and filter)

See gh-3557
This commit is contained in:
Dave Syer 2015-08-10 10:50:49 +01:00
parent 7bc5322034
commit 2985b0e9d8
2 changed files with 1 additions and 4 deletions

View File

@ -26,7 +26,6 @@ import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.ws.rs.ApplicationPath;
import org.glassfish.jersey.CommonProperties;
import org.glassfish.jersey.server.ResourceConfig;
import org.glassfish.jersey.servlet.ServletContainer;
import org.glassfish.jersey.servlet.ServletProperties;
@ -131,8 +130,6 @@ public class JerseyAutoConfiguration implements WebApplicationInitializer {
}
private void addInitParameters(RegistrationBean registration) {
registration.addInitParameter(CommonProperties.METAINF_SERVICES_LOOKUP_DISABLE,
"true");
for (Entry<String, String> entry : this.jersey.getInit().entrySet()) {
registration.addInitParameter(entry.getKey(), entry.getValue());
}

View File

@ -36,7 +36,7 @@ public class JerseyProperties {
private Type type = Type.SERVLET;
/**
* Init parameters to pass to Jersey.
* Init parameters to pass to Jersey via the servlet or filter.
*/
private Map<String, String> init = new HashMap<String, String>();