getObject() public method

returns the value of the reference. Generally, this is only called for dynamic proxies, as the static ones should have been stored in the VMContext's localContext store *
public getObject ( IInternalContextAdapter context ) : Object
context IInternalContextAdapter Context to use for getting current value ///
return Object
Esempio n. 1
0
	/// <summary>  return the inner / user context
	/// </summary>


	/// <summary>  Used to put VMProxyArgs into this context.  It separates
	/// the VMProxyArgs into constant and non-constant types
	/// pulling out the value of the constant types so they can
	/// be modified w/o damaging the VMProxyArg, and leaving the
	/// dynamic ones, as they modify context rather than their own
	/// state
	/// </summary>
	/// <param name="vmpa">VMProxyArg to add
	///
	/// </param>
	public virtual void  AddVMProxyArg(VMProxyArg vmpa) {
	    /*
	    *  ask if it's a constant : if so, get the value and put into the
	    *  local context, otherwise, put the vmpa in our vmproxyhash
	    */

	    System.String key = vmpa.ContextReference;

	    if (vmpa.isConstant()) {
		localcontext[key] = vmpa.getObject(wrappedContext);
	    } else {
		vmproxyhash[key] = vmpa;
	    }
	}