package com.meujornal.infrastructure.vraptor;

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

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

/**
 * Sobrescreve as convenções do VRaptor para a resolução das views a partir do
 * diretório /WEB-INF/views.
 * 
 * @author Alan Ghelardi
 *
 */
@Specializes
class CustomPathResolver extends DefaultPathResolver {

	@Inject
	protected CustomPathResolver(FormatResolver resolver) {
		super(resolver);
	}

	@Override
	protected String getPrefix() {
		return "/WEB-INF/views/";
	}

}

@@ -436,16 +436,70 @@
 lver %7B%0A%0A
+%09// Gera um novo resolvedor de caminhos para as views%0A
 %09@Inject
@@ -579,16 +579,88 @@
 r);%0A%09%7D%0A%0A
+%09// Retorna o prefixo que deve ser considerado na resolu%C3%A7%C3%A3o de caminhos%0A
 %09@Overri

Update CustomPathResolver.java