All Downloads are FREE. Search and download functionalities are using the official Maven repository.

be.looorent.jflu.EventData Maven / Gradle / Ivy

package be.looorent.jflu;

import be.looorent.jflu.entity.EntityData;
import be.looorent.jflu.manual.ManualData;
import be.looorent.jflu.request.RequestData;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

/**
 * In contrast with {@link EventMetadata}, this interface must be implemented
 * to represent how an event is filled with data.
 * @author Lorent Lempereur {@literal }
 */
@JsonTypeInfo(
        use = JsonTypeInfo.Id.NAME,
        property = "type",
        defaultImpl = ManualData.class)
@JsonSubTypes({
        @JsonSubTypes.Type(value = EntityData.class, name = "entity"),
        @JsonSubTypes.Type(value = RequestData.class, name = "request"),
        @JsonSubTypes.Type(value = ManualData.class, name = "manual"),
})
public interface EventData {
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy