publicfinalclass Method extends Executable { public Object invoke(Object obj, Object args) throws IllegalAccessException, IllegalArgumentException,InvocationTargetException { if (!override) { if (!Reflection.quickCheckMemberAccess(clazz, modifiers)) { Class<?> caller = Reflection.getCallerClass(); checkAccess(caller, clazz, obj, modifiers); } } MethodAccessor ma = methodAccessor; // read volatile if (ma ==null) { ma = acquireMethodAccessor(); } return ma.invoke(obj, args); } } publicclass ModelMap extends LinkedHashMap<String, Object> {}
publicabstractclass AbstractView extends WebApplicationObjectSupport implements View, BeanNameAware { /** * Prepares the view given the specified model, merging it with static * attributes and a RequestContext attribute, if necessary. * Delegates to renderMergedOutputModel for the actual rendering. * @see #renderMergedOutputModel */ @Override publicvoid render(Map<String, ?> model, HttpServletRequest request, HttpServletResponse response) throws Exception { if (logger.isTraceEnabled()) { logger.trace("Rendering view with name '"+this.beanName +"' with model "+ model + " and static attributes "+this.staticAttributes); }