Author: echatellier Date: 2010-06-04 14:40:33 +0200 (Fri, 04 Jun 2010) New Revision: 95 Url: http://nuiton.org/repositories/revision/wikitty/95 Log: Forgot delegate wikitty service in constructor. Modified: trunk/wikitty-api/src/main/java/org/nuiton/wikitty/WikittyServiceNotifier.java Modified: trunk/wikitty-api/src/main/java/org/nuiton/wikitty/WikittyServiceNotifier.java =================================================================== --- trunk/wikitty-api/src/main/java/org/nuiton/wikitty/WikittyServiceNotifier.java 2010-06-04 12:30:12 UTC (rev 94) +++ trunk/wikitty-api/src/main/java/org/nuiton/wikitty/WikittyServiceNotifier.java 2010-06-04 12:40:33 UTC (rev 95) @@ -85,11 +85,26 @@ /** JGroup notifier. */ protected WikittyServiceListener notifier; - public WikittyServiceNotifier() { - this(null); + /** + * Default constructor. + * + * @param ws delegate service + */ + public WikittyServiceNotifier(WikittyService ws) { + this(ws, null); } - public WikittyServiceNotifier(Properties props) { + /** + * Constructor with configuration. + * + * @param ws delegate service + * @param props properties (can be null) + */ + public WikittyServiceNotifier(WikittyService ws, Properties props) { + // service + this.ws = ws; + + // listeners allWikittyServiceListeners = new ListenerSet<WikittyServiceListener>(); localWikittyServiceListeners = new ListenerSet<WikittyServiceListener>(); remoteWikittyServiceListeners = new ListenerSet<WikittyServiceListener>(); @@ -99,6 +114,8 @@ /** * Add jgroup listener if enabled by configuration. + * + * @param props properties (can be null) */ protected void addJGroupNotifier(Properties props) {