コード例 #1
0
    public Object internalGet(String key) {
      if (super.internalContainsKey(key)) return super.internalGet(key);

      if (stack.test(key)) return stack.findValue(key);

      return container.getComponent(key);
    }
コード例 #2
0
    public boolean internalContainsKey(java.lang.Object key) {
      boolean contains = super.internalContainsKey(key);
      if (contains) return contains;

      contains = stack.test(key.toString());
      if (contains) return contains;

      return container.getComponentAdapter(key) != null;
    }
コード例 #3
0
 protected Context createContext(
     javax.servlet.http.HttpServletRequest request,
     javax.servlet.http.HttpServletResponse response) {
   Context ctx =
       new NanocontainerVelocityContext(
           ServletFilter.getRequestContainerForThread(), ServletValueStack.getStack(request));
   ctx.put(REQUEST, request);
   ctx.put(RESPONSE, response);
   return ctx;
 }