br.com.caelum.vraptor.util.jpa.extra
Class ParameterLoaderInterceptor
java.lang.Object
br.com.caelum.vraptor.util.jpa.extra.ParameterLoaderInterceptor
- All Implemented Interfaces:
- br.com.caelum.vraptor.interceptor.Interceptor
@Intercepts(before=br.com.caelum.vraptor.interceptor.ParametersInstantiatorInterceptor.class)
@Lazy
public class ParameterLoaderInterceptor
- extends Object
- implements br.com.caelum.vraptor.interceptor.Interceptor
Interceptor that loads given entity from the database.
- Since:
- 3.3.2
- Author:
- Lucas Cavalcanti, Cecilia Fernandes, Otávio Scherer Garcia
|
Constructor Summary |
ParameterLoaderInterceptor(javax.persistence.EntityManager em,
javax.servlet.http.HttpServletRequest request,
br.com.caelum.vraptor.http.ParameterNameProvider provider,
br.com.caelum.vraptor.Result result,
br.com.caelum.vraptor.core.Converters converters,
br.com.caelum.vraptor.core.Localization localization,
br.com.caelum.vraptor.view.FlashScope flash)
|
|
Method Summary |
boolean |
accepts(br.com.caelum.vraptor.resource.ResourceMethod method)
|
void |
intercept(br.com.caelum.vraptor.core.InterceptorStack stack,
br.com.caelum.vraptor.resource.ResourceMethod method,
Object resourceInstance)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParameterLoaderInterceptor
public ParameterLoaderInterceptor(javax.persistence.EntityManager em,
javax.servlet.http.HttpServletRequest request,
br.com.caelum.vraptor.http.ParameterNameProvider provider,
br.com.caelum.vraptor.Result result,
br.com.caelum.vraptor.core.Converters converters,
br.com.caelum.vraptor.core.Localization localization,
br.com.caelum.vraptor.view.FlashScope flash)
accepts
public boolean accepts(br.com.caelum.vraptor.resource.ResourceMethod method)
- Specified by:
accepts in interface br.com.caelum.vraptor.interceptor.Interceptor
intercept
public void intercept(br.com.caelum.vraptor.core.InterceptorStack stack,
br.com.caelum.vraptor.resource.ResourceMethod method,
Object resourceInstance)
throws br.com.caelum.vraptor.InterceptionException
- Specified by:
intercept in interface br.com.caelum.vraptor.interceptor.Interceptor
- Throws:
br.com.caelum.vraptor.InterceptionException
Copyright © 2013 Caelum. All Rights Reserved.