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

br.eti.clairton.vraptor.crud.controller.SinglePagePathResolver Maven / Gradle / Ivy

The newest version!
package br.eti.clairton.vraptor.crud.controller;

import javax.enterprise.inject.Specializes;
import javax.inject.Inject;

import br.com.caelum.vraptor.http.FormatResolver;
import br.com.caelum.vraptor.view.DefaultPathResolver;

/**
 * Torna os controllers possíveis de serem usados por uma cliente SPA
 * 
 * @author Clairton Rodrigo Heinzen [email protected]
 */
@Specializes
public class SinglePagePathResolver extends DefaultPathResolver {
	/**
	 * @deprecated CDI eyes only
	 */
	protected SinglePagePathResolver() {
		this(null);
	}

	@Inject
	public SinglePagePathResolver(final FormatResolver resolver) {
		super(resolver);
	}
	
	protected String getPrefix() {
        return "/WEB-INF";
    }
	
	protected String getExtension() {
        return "html";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy