use of org.jessma.mvc.Action in project JessMA by ldcsaa.
the class GuiceInjectFilter method doFilter.
@Override
public String doFilter(ActionExecutor executor) throws Exception {
Action action = executor.getAction();
Method method = executor.getEntryMethod();
CoupleKey<Class<?>, Method> key = new CoupleKey<Class<?>, Method>(action.getClass(), method);
checkGuiceMap(executor, action, key);
tryInject(action, key);
return executor.invoke();
}
use of org.jessma.mvc.Action in project JessMA by ldcsaa.
the class SpringInjectFilter method doFilter.
@Override
public String doFilter(ActionExecutor executor) throws Exception {
Action action = executor.getAction();
Method method = executor.getEntryMethod();
CoupleKey<Class<?>, Method> key = new CoupleKey<Class<?>, Method>(action.getClass(), method);
checkSpringMap(executor, action, key);
tryInject(action, key);
return executor.invoke();
}
use of org.jessma.mvc.Action in project JessMA by ldcsaa.
the class DaoInjectFilter method doFilter.
@Override
public String doFilter(ActionExecutor executor) throws Exception {
Action action = executor.getAction();
Method method = executor.getEntryMethod();
CoupleKey<Class<?>, Method> key = new CoupleKey<Class<?>, Method>(action.getClass(), method);
checkDaoMap(executor, action, key);
tryInject(action, key);
return executor.invoke();
}