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

org.jboss.resteasy.reactive.common.model.ResourceParamConverterProvider Maven / Gradle / Ivy

There is a newer version: 3.17.0.CR1
Show newest version
package org.jboss.resteasy.reactive.common.model;

import jakarta.ws.rs.Priorities;
import jakarta.ws.rs.ext.ParamConverterProvider;

import org.jboss.resteasy.reactive.spi.BeanFactory;

public class ResourceParamConverterProvider implements Comparable {

    private BeanFactory factory;
    private Integer priority = Priorities.USER;
    private String className;

    public void setFactory(BeanFactory factory) {
        this.factory = factory;
    }

    public BeanFactory getFactory() {
        return factory;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public String getClassName() {
        return className;
    }

    public ResourceParamConverterProvider setClassName(String className) {
        this.className = className;
        return this;
    }

    @Override
    public int compareTo(ResourceParamConverterProvider o) {
        return this.priority.compareTo(o.priority);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy