org.zkoss.zkplus.spring
Class DelegatingVariableResolver
java.lang.Object
org.zkoss.zkplus.spring.DelegatingVariableResolver
- All Implemented Interfaces:
- org.zkoss.xel.VariableResolver
public class DelegatingVariableResolver
- extends java.lang.Object
- implements org.zkoss.xel.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
|
protected java.util.Map |
_vars
|
|
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 |
_ctx
protected org.springframework.context.ApplicationContext _ctx
_vars
protected final java.util.Map _vars
DelegatingVariableResolver
public DelegatingVariableResolver()
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 org.zkoss.xel.VariableResolver
Copyright © 2005-2007 Potix Corporation. All Rights Reserved.