Fix event transformers
This commit is contained in:
parent
2527682d00
commit
958d04519b
@ -2,6 +2,7 @@ package it.tdlight.reactiveapi;
|
|||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import java.util.List;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
@ -26,14 +27,14 @@ public class InstanceSettings {
|
|||||||
/**
|
/**
|
||||||
* If {@link #client} is false, this will transform resulting events <b>before</b> being sent
|
* If {@link #client} is false, this will transform resulting events <b>before</b> being sent
|
||||||
*/
|
*/
|
||||||
public @Nullable Set<Class<? extends ResultingEventTransformer>> resultingEventTransformers;
|
public @Nullable List<Class<? extends ResultingEventTransformer>> resultingEventTransformers;
|
||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
public InstanceSettings(@JsonProperty(required = true, value = "id") @NotNull String id,
|
public InstanceSettings(@JsonProperty(required = true, value = "id") @NotNull String id,
|
||||||
@JsonProperty(required = true, value = "client") boolean client,
|
@JsonProperty(required = true, value = "client") boolean client,
|
||||||
@JsonProperty("clientAddress") @Nullable String clientAddress,
|
@JsonProperty("clientAddress") @Nullable String clientAddress,
|
||||||
@JsonProperty("resultingEventTransformers") @Nullable
|
@JsonProperty("resultingEventTransformers") @Nullable
|
||||||
Set<Class<? extends ResultingEventTransformer>> resultingEventTransformers) {
|
List<Class<? extends ResultingEventTransformer>> resultingEventTransformers) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.client = client;
|
this.client = client;
|
||||||
this.clientAddress = clientAddress;
|
this.clientAddress = clientAddress;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user