Examples of resolveVariable()


Examples of org.exist.xquery.functions.response.ResponseModule.resolveVariable()

        // directly stream the backup contents to the HTTP response
        final ResponseModule myModule = (ResponseModule)context.getModule( ResponseModule.NAMESPACE_URI );

        // response object is read from global variable $response
        final Variable       respVar  = myModule.resolveVariable( ResponseModule.RESPONSE_VAR );

        if( respVar == null ) {
            throw( new XPathException( this, "No response object found in the current XQuery context." ) );
        }
View Full Code Here

Examples of org.exist.xquery.functions.session.SessionModule.resolveVariable()

   * @param createSession  Create session?
   */
  private Variable getSessionVar( boolean createSession ) throws XPathException
  {
    final SessionModule sessionModule = (SessionModule)context.getModule( SessionModule.NAMESPACE_URI );
        Variable var = sessionModule.resolveVariable( SessionModule.SESSION_VAR );
   
    if( createSession && ( var == null || var.getValue() == null ) ) {
      SessionWrapper session  = null;
      final RequestModule reqModule = (RequestModule)context.getModule( RequestModule.NAMESPACE_URI );
   
View Full Code Here

Examples of org.jboss.seam.jsf.SeamVariableResolver.resolveVariable()

     
      Contexts.getSessionContext().set("zzz", "bar");
      Contexts.getApplicationContext().set("zzz", "bar");
      Contexts.getConversationContext().set("xxx", "yyy");
     
      Object bar = seamVariableResolver.resolveVariable(null, "bar");
      assert bar!=null;
      assert bar instanceof Bar;
      assert Contexts.getConversationContext().get("bar")==bar;
      Object foo = Contexts.getSessionContext().get("foo");
      assert foo!=null;
View Full Code Here

Examples of org.springframework.core.ResolvableType.VariableResolver.resolveVariable()

  @Test
  public void resolveTypeWithCustomVariableResolver() throws Exception {
    VariableResolver variableResolver = mock(VariableResolver.class);
    given(variableResolver.getSource()).willReturn(this);
    ResolvableType longType = ResolvableType.forClass(Long.class);
    given(variableResolver.resolveVariable((TypeVariable<?>) anyObject())).willReturn(longType);

    ResolvableType variable = ResolvableType.forType(
        Fields.class.getField("typeVariableType").getGenericType(), variableResolver);
    ResolvableType parameterized = ResolvableType.forType(
        Fields.class.getField("parameterizedType").getGenericType(), variableResolver);
View Full Code Here

Examples of org.zkoss.xel.VariableResolver.resolveVariable()

  protected Scope getZKScope() {
    final Execution exec = Executions.getCurrent();
    if (exec != null) {
      final VariableResolver vresolver = exec.getVariableResolver();
      if (vresolver != null) {
        return (Scope) vresolver.resolveVariable(getZKScopeName());
      }
    }
    return null;
  }
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.