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

com.testingsyndicate.jms.responder.matcher.Matcher Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package com.testingsyndicate.jms.responder.matcher;

import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonSubTypes.Type;
import com.testingsyndicate.jms.responder.model.RequestInfo;

@JsonTypeInfo(use = JsonTypeInfo.Id.NAME,
              include = JsonTypeInfo.As.PROPERTY,
              property = "type")
@JsonSubTypes(
        {
                @Type(value = BodyMatcher.class, name = "body"),
                @Type(value = QueueMatcher.class, name = "queue"),
                @Type(value = XmlMatcher.class, name = "xml"),
                @Type(value = AnyMatcher.class, name = "any"),
                @Type(value = AllMatcher.class, name = "all")
        }
)
public interface Matcher {

    boolean matches(RequestInfo requestInfo);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy