use of org.raml.jaxrs.generator.v10.V10GResource in project raml-for-jax-rs by mulesoft-labs.
the class RamlV10 method buildResourceV10.
public static void buildResourceV10(Object test, String raml, CodeContainer<TypeSpec> container, String name, String uri) throws IOException {
Api api = buildApiV10(test, raml);
CurrentBuild currentBuild = new CurrentBuild(api, ExtensionManager.createExtensionManager());
currentBuild.constructClasses(new V10Finder(null, api));
ResourceBuilder builder = new ResourceBuilder(currentBuild, new V10GResource(currentBuild, new GAbstractionFactory(), api.resources().get(0)), name, uri);
builder.output(container);
}
Aggregations