Adding note about weld requirement on .getServerInfo()

This commit is contained in:
Joakim Erdfelt 2014-10-09 15:11:07 -07:00
parent 67db9e67de
commit 17aa2eaf7a
1 changed files with 5 additions and 0 deletions

View File

@ -2446,6 +2446,11 @@ public class ContextHandler extends ScopedHandler implements Attributes, Gracefu
@Override
public String getServerInfo()
{
// NOTE: DO NOT CHANGE
// this is used by weld to detect Jetty
// implementation version
// See: https://github.com/weld/core/blob/master/environments/servlet/core/src/main/java/org/jboss/weld/environment/jetty/JettyContainer.java
// and its touch(ContainerContext) method
return "jetty/" + Server.getVersion();
}