org.zkoss.zkplus.spring
Class DelegatingVariableResolver
java.lang.Object
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
|
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
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 VariableResolver
- Parameters:
name
- the name of the variable to resolve
Copyright © 2005-2009 Potix Corporation. All Rights Reserved.