* @param resources the set of resources
* @return the JAXB WADL application bean
*/
public Application generate(Set<AbstractResource> resources ) {
Application wadlApplication = _wadlGenerator.createApplication();
Resources wadlResources = _wadlGenerator.createResources();
Set<Class<?>> visitedClasses = new HashSet<Class<?>>();
// for each resource
for (AbstractResource r: resources) {
Resource wadlResource = generateResource(r, null, visitedClasses);
wadlResources.getResource().add(wadlResource);
}
wadlApplication.setResources(wadlResources);
addVersion(wadlApplication);
return wadlApplication;