Search in sources :

Example 1 with Action

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();
}
Also used : Action(org.jessma.mvc.Action) Method(java.lang.reflect.Method) CoupleKey(org.jessma.util.CoupleKey)

Example 2 with Action

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();
}
Also used : Action(org.jessma.mvc.Action) Method(java.lang.reflect.Method) CoupleKey(org.jessma.util.CoupleKey)

Example 3 with Action

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();
}
Also used : Action(org.jessma.mvc.Action) Method(java.lang.reflect.Method) CoupleKey(org.jessma.util.CoupleKey)

Aggregations

Method (java.lang.reflect.Method)3 Action (org.jessma.mvc.Action)3 CoupleKey (org.jessma.util.CoupleKey)3