Beispiel #1
0
  /**
   * Impl of the Context.gut() method.
   *
   * @param key name of item to get
   * @return stored object or null
   */
  public Object get(String key) {
    /*
     * first, see if it's a VMPA
     */

    Object o = null;

    VMProxyArg vmpa = (VMProxyArg) vmproxyhash.get(key);

    if (vmpa != null) {
      o = vmpa.getObject(wrappedContext);
    } else {
      if (localcontextscope) {
        /*
         * if we have localcontextscope mode, then just
         * put in the local context
         */

        o = localcontext.get(key);
      } else {
        /*
         *  try the local context
         */

        o = localcontext.get(key);

        if (o == null) {
          /*
           * last chance
           */

          o = innerContext.get(key);
        }
      }
    }

    return o;
  }
 /**
  * Retrieves from parent context.
  *
  * @param key name of item to get
  * @return stored object or null
  */
 public Object get(String key) {
   return innerContext.get(key);
 }