mirror of
https://github.com/valitydev/woody_java.git
synced 2024-11-06 08:15:21 +00:00
MSPF-23: review fixes
This commit is contained in:
parent
20b23dd9a0
commit
8212c13254
10
pom.xml
10
pom.xml
@ -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>
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,6 @@
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>1.7.21</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
|
@ -16,5 +16,5 @@ public interface ServiceActionListener {
|
||||
|
||||
ServiceEvent error(ServiceEvent event);
|
||||
|
||||
ServiceEvent unddefined(ServiceEvent event);
|
||||
ServiceEvent undefined(ServiceEvent event);
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ public class ServiceEventListenerImpl implements ServiceEventListener<THServiceE
|
||||
break;
|
||||
default:
|
||||
if (eventActionListener != null)
|
||||
eventActionListener.unddefined(event);
|
||||
eventActionListener.undefined(event);
|
||||
break;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user