use of org.jessma.util.CoupleKey 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.util.CoupleKey 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.util.CoupleKey in project JessMA by ldcsaa.
the class SpringInjectFilter method init.
@Override
public void init() {
servletContext = HttpHelper.getServletContext();
springMap = new HashMap<CoupleKey<Class<?>, Method>, SpringAttr[]>();
context = WebApplicationContextUtils.getWebApplicationContext(servletContext);
if (context == null) {
listener = new ContextLoaderListener();
listener.contextInitialized(new ServletContextEvent(servletContext));
context = WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext);
}
}
use of org.jessma.util.CoupleKey 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();
}
Aggregations