org.jboss.resteasy.wadl.ResteasyWadlGenerator Maven / Gradle / Ivy
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;
}
}