MSPF-23: review fixes

This commit is contained in:
Vladimir Pankrashkin 2016-05-23 11:00:32 +03:00
parent 20b23dd9a0
commit 8212c13254
6 changed files with 14 additions and 19 deletions

10
pom.xml
View File

@ -17,6 +17,16 @@
<module>woody-thrift</module>
</modules>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.21</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<pluginManagement>
<plugins>

View File

@ -4,16 +4,9 @@ package com.rbkmoney.woody.api.event;
* Created by vpankrashkin on 28.04.16.
*/
public class CompositeClientEventListener<E extends ClientEvent> extends CompositeEventListener<E> implements ClientEventListener<E> {
private final EventListener<E>[] listeners;
public CompositeClientEventListener(EventListener<E>... listeners) {
this.listeners = listeners.clone();
super(listeners);
}
@Override
public void notifyEvent(E event) {
for (int i = 0; i < listeners.length; ++i) {
listeners[i].notifyEvent(event);
}
}
}

View File

@ -4,16 +4,9 @@ package com.rbkmoney.woody.api.event;
* Created by vpankrashkin on 28.04.16.
*/
public class CompositeServiceEventListener<E extends ServiceEvent> extends CompositeEventListener<E> implements ServiceEventListener<E> {
private final EventListener<E>[] listeners;
public CompositeServiceEventListener(EventListener<E>... listeners) {
this.listeners = listeners.clone();
super(listeners);
}
@Override
public void notifyEvent(E event) {
for (int i = 0; i < listeners.length; ++i) {
listeners[i].notifyEvent(event);
}
}
}

View File

@ -27,7 +27,6 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.21</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>

View File

@ -16,5 +16,5 @@ public interface ServiceActionListener {
ServiceEvent error(ServiceEvent event);
ServiceEvent unddefined(ServiceEvent event);
ServiceEvent undefined(ServiceEvent event);
}

View File

@ -44,7 +44,7 @@ public class ServiceEventListenerImpl implements ServiceEventListener<THServiceE
break;
default:
if (eventActionListener != null)
eventActionListener.unddefined(event);
eventActionListener.undefined(event);
break;
}