org.zkoss.zkplus.spring
Class DelegatingVariableResolver

java.lang.Object
  extended by org.zkoss.zkplus.spring.DelegatingVariableResolver
All Implemented Interfaces:
VariableResolver

public class DelegatingVariableResolver
extends java.lang.Object
implements VariableResolver

DelegatingVariableResolver, a spring bean variable resolver.

It defines a variable called springContext to represent the instance of org.springframework.context.ApplicationContext. It also looks variables for beans defined in springContext.

Usage:
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>

Author:
andrewho

Field Summary
protected  org.springframework.context.ApplicationContext _ctx
           
 
Constructor Summary
DelegatingVariableResolver()
           
 
Method Summary
protected  org.springframework.context.ApplicationContext getApplicationContext()
          Get the spring application context.
 java.lang.Object resolveVariable(java.lang.String name)
          Get the spring bean by the specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_ctx

protected org.springframework.context.ApplicationContext _ctx
Constructor Detail

DelegatingVariableResolver

public DelegatingVariableResolver()
Method Detail

getApplicationContext

protected org.springframework.context.ApplicationContext getApplicationContext()
Get the spring application context.


resolveVariable

public java.lang.Object resolveVariable(java.lang.String name)
Get the spring bean by the specified name.

Specified by:
resolveVariable in interface VariableResolver
Parameters:
name - the name of the variable to resolve


Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo