change name of add method as it makes sense
This commit is contained in:
parent
7901e8c380
commit
f011ec513a
@ -17,7 +17,7 @@ public class InteractionRegistry {
|
|||||||
wrapper.subscribeInteractions(this::handle);
|
wrapper.subscribeInteractions(this::handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void registerInteractions(InteractionHandler interactionHandler) {
|
public void addInteractions(InteractionHandler interactionHandler) {
|
||||||
for (Method method : interactionHandler.getClass().getMethods()) {
|
for (Method method : interactionHandler.getClass().getMethods()) {
|
||||||
interactionMethods.add(InteractionMethod.create(method, interactionHandler, wrapper));
|
interactionMethods.add(InteractionMethod.create(method, interactionHandler, wrapper));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user