bug 341736 Use a lifecyclelistener instead of extending the Connector itself

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3062 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Hugues Malphettes 2011-05-03 03:57:24 +00:00
parent cab968d649
commit 9dfe601776
1 changed files with 12 additions and 2 deletions

View File

@ -24,8 +24,10 @@ import org.osgi.framework.FrameworkUtil;
/**
* Listens to the start and stop of the NestedConnector to register and unregister the NestedConnector
* with the BridgeServlet.
* <p>
* All interactions with the BridgeServlet are done via introspection to avoid depending on it directly.
* The BridgeServlet lives in the bootstrap-webapp; not inside equinox.
* </p>
*/
public class NestedConnectorListener extends AbstractLifeCycleListener
{
@ -113,7 +115,11 @@ public class NestedConnectorListener extends AbstractLifeCycleListener
}
catch (Exception e)
{
//Logger.getLogger("org.eclipse.jetty.osgi.nested").;
if (e instanceof RuntimeException)
{
throw (RuntimeException)e;
}
throw new RuntimeException("Unable to register the servlet delegate into the BridgeServlet.", e);
}
}
@ -126,7 +132,11 @@ public class NestedConnectorListener extends AbstractLifeCycleListener
}
catch (Exception e)
{
e.printStackTrace();
if (e instanceof RuntimeException)
{
throw (RuntimeException)e;
}
throw new RuntimeException("Unable to unregister the servlet delegate into the BridgeServlet.", e);
}
}