From d0112baf50ebfb5189868cfa95b4a18445d436c5 Mon Sep 17 00:00:00 2001 From: Michael Gorovoy Date: Fri, 9 Apr 2010 20:45:52 +0000 Subject: [PATCH] 307294 Add AbstractLifeCycle.AbstractLifeCycleListener implementation git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1494 7e9141cc-0065-0410-87d8-b60c137991c4 --- VERSION.txt | 1 + .../eclipse/jetty/util/component/AbstractLifeCycle.java | 9 ++++++++- .../jetty/util/component/LifeCycleListenerTest.java | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index 6e4f2edf805..838426778f5 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -3,6 +3,7 @@ jetty-7.1-SNAPSHOT + 294563 Websocket client connection + 297104 Improve handling of CONNECT method + 306349 ProxyServlet does not work unless deployed at / + + 307294 Add AbstractLifeCycle.AbstractLifeCycleListener implementation + 307847 Fixed combining mime type parameters + 307898 Handle large/async websocket messages + 308009 ObjectMBean incorrectly casts getTargetException() to Exception diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/component/AbstractLifeCycle.java b/jetty-util/src/main/java/org/eclipse/jetty/util/component/AbstractLifeCycle.java index dd657bb3cb3..d9d21cbce13 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/component/AbstractLifeCycle.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/component/AbstractLifeCycle.java @@ -211,5 +211,12 @@ public abstract class AbstractLifeCycle implements LifeCycle } } - + public static abstract class AbstractLifeCycleListener implements LifeCycle.Listener + { + public void lifeCycleFailure(LifeCycle event, Throwable cause) {} + public void lifeCycleStarted(LifeCycle event) {} + public void lifeCycleStarting(LifeCycle event) {} + public void lifeCycleStopped(LifeCycle event) {} + public void lifeCycleStopping(LifeCycle event) {} + } } diff --git a/jetty-util/src/test/java/org/eclipse/jetty/util/component/LifeCycleListenerTest.java b/jetty-util/src/test/java/org/eclipse/jetty/util/component/LifeCycleListenerTest.java index 528c9241d3a..d70d35741bf 100644 --- a/jetty-util/src/test/java/org/eclipse/jetty/util/component/LifeCycleListenerTest.java +++ b/jetty-util/src/test/java/org/eclipse/jetty/util/component/LifeCycleListenerTest.java @@ -178,7 +178,7 @@ public class LifeCycleListenerTest extends TestCase - private class TestListener implements LifeCycle.Listener + private class TestListener extends AbstractLifeCycle.AbstractLifeCycleListener { private boolean failure = false;