Skip to content
Browse files

LPS-27118 added jetty-related comments

  • Loading branch information...
1 parent 3f1ebf2 commit 6e0c63c217a9427cef09570bca83cbfa90a0e192 @igorspasic igorspasic committed with brianchandotcom
Showing with 10 additions and 0 deletions.
  1. +10 −0 portal-impl/src/com/liferay/portal/servlet/MainServlet.java
View
10 portal-impl/src/com/liferay/portal/servlet/MainServlet.java
@@ -937,6 +937,8 @@ protected void initServerDetectorJetty() throws Exception {
field.setAccessible(true);
+ // org.eclipse.jetty.webapp.WebAppContext
+
Object webAppContext = field.get(servletContext);
Class abstractHandlerClass = webAppContext.getClass();
@@ -945,10 +947,14 @@ protected void initServerDetectorJetty() throws Exception {
abstractHandlerClass = abstractHandlerClass.getSuperclass();
}
+ // org.eclipse.jetty.server.handler.AbstractHandler
+
field = abstractHandlerClass.getDeclaredField("_server");
field.setAccessible(true);
+ // org.eclipse.jetty.server.Server
+
Object server = field.get(webAppContext);
Class aggregateLifeCycleClass = server.getClass();
@@ -957,6 +963,8 @@ protected void initServerDetectorJetty() throws Exception {
aggregateLifeCycleClass = aggregateLifeCycleClass.getSuperclass();
}
+ // org.eclipse.jetty.util.component.AggregateLifeCycle
+
field = aggregateLifeCycleClass.getDeclaredField("_dependentBeans");
field.setAccessible(true);
@@ -980,6 +988,8 @@ protected void initServerDetectorJetty() throws Exception {
throw new Exception("DeploymentManager not found.");
}
+ // org.eclipse.jetty.deploy.DeploymentManager
+
field = deploymentManager.getClass().getDeclaredField("_providers");
field.setAccessible(true);

0 comments on commit 6e0c63c

Please sign in to comment.
Something went wrong with that request. Please try again.