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

service-generator.templates.java.resources-feature.vm Maven / Gradle / Ivy

The newest version!
#set ($currentPackage = "#resolveResourceImplementationNamespace($element)")

package $currentPackage;

import javax.ws.rs.core.Feature;
import javax.ws.rs.core.FeatureContext;

/**
 * JAX RS feature which registers the API resources defined in the RAML.
 */
public class #resolveResourcesFeatureClassName($element) implements Feature
{
	@Override
	public boolean configure(final FeatureContext context)
	{
#foreach($api in $element.apis)
		context.register(#resolveResourceImplementationClassName($api).class);
#end
		return true;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy