Skip to content

Commit

Permalink
default exception mapper should be request scoped
Browse files Browse the repository at this point in the history
  • Loading branch information
csokol committed Aug 23, 2013
1 parent 31aa2bc commit 14cefe0
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

import br.com.caelum.vraptor4.Result;
import br.com.caelum.vraptor4.interceptor.ExceptionHandlerInterceptor;
import br.com.caelum.vraptor4.ioc.RequestScoped;
import br.com.caelum.vraptor4.proxy.Proxifier;

/**
Expand All @@ -42,14 +43,19 @@
* @see ExceptionHandlerInterceptor
* @since 3.2
*/
@RequestScoped
public class DefaultExceptionMapper
implements ExceptionMapper {

private static final Logger logger = LoggerFactory.getLogger(DefaultExceptionMapper.class);

private final Map<Class<? extends Exception>, ExceptionRecorder<Result>> exceptions;
private final Proxifier proxifier;


@Deprecated
public DefaultExceptionMapper() {
this(null);
}
@Inject
public DefaultExceptionMapper(Proxifier proxifier) {
this.proxifier = proxifier;
Expand Down

0 comments on commit 14cefe0

Please sign in to comment.