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

org.jboss.resteasy.wadl.ResteasyWadlGenerator Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha3
Show newest version
package org.jboss.resteasy.wadl;

import org.jboss.resteasy.core.ResourceMethodRegistry;
import org.jboss.resteasy.spi.ResteasyDeployment;
import org.jboss.resteasy.spi.ResteasyProviderFactory;

/**
 * @author Weinan Li
 */
public class ResteasyWadlGenerator {

    public static ResteasyWadlServiceRegistry generateServiceRegistry(ResteasyDeployment deployment) {
        ResourceMethodRegistry registry = (ResourceMethodRegistry) deployment.getRegistry();
        ResteasyProviderFactory providerFactory = deployment.getProviderFactory();
        ResteasyWadlServiceRegistry service = new ResteasyWadlServiceRegistry(null, registry, providerFactory, null);
        return service;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy