Package org.zkoss.zkplus.spring
Class DelegatingVariableResolver
- java.lang.Object
-
- org.zkoss.zkplus.spring.DelegatingVariableResolver
-
- All Implemented Interfaces:
java.io.Serializable
,VariableResolver
public class DelegatingVariableResolver extends java.lang.Object implements VariableResolver, java.io.Serializable
DelegatingVariableResolver for resolving Spring beans, Spring Security variables and Spring Webflow variables.
It delegates variable resolving to ZK Spring core, ZK Spring Security and ZK Spring FlowResolver if they are on application classpath.
Usage:
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
Developers can specify a list of class names separated with comma in a library property called
org.zkoss.spring.VariableResolver.class
, such they are used as the default variable resolvers.Applicable to Spring Framework version 2.x or later
- Author:
- henrichen, ashish
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<VariableResolver>
_variableResolvers
Holds list of variable resolvers for Spring core (3.0RC and later), Spring security(3.0RC and later) and Spring webflow(only for 1.x)
-
Constructor Summary
Constructors Constructor Description DelegatingVariableResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.Object
resolveVariable(java.lang.String name)
Resolves variable name by name.
-
-
-
Field Detail
-
_variableResolvers
protected transient java.util.List<VariableResolver> _variableResolvers
Holds list of variable resolvers for Spring core (3.0RC and later), Spring security(3.0RC and later) and Spring webflow(only for 1.x)
-
-
Method Detail
-
resolveVariable
public java.lang.Object resolveVariable(java.lang.String name)
Resolves variable name by name. It can resolve a spring bean, spring security authentication and spring web flow variables depending upon ZK Spring libraries in the classpath- Specified by:
resolveVariable
in interfaceVariableResolver
- Parameters:
name
- the name of the variable to resolve
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-