org.zkoss.spring
Class DelegatingVariableResolver

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

public class DelegatingVariableResolver
extends org.zkoss.zkplus.spring.DelegatingVariableResolver

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.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.

Since:
3.0
Author:
henrichen

Field Summary
protected  java.util.List _variableResolvers
          Holds list of variable resolvers for Spring core (3.0 and later), Spring security(3.0 and later)
static java.lang.String RESOLVER_CLASS
           
 
Constructor Summary
DelegatingVariableResolver()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.Object resolveVariable(java.lang.String name)
          Resolves variable name by name.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOLVER_CLASS

public static java.lang.String RESOLVER_CLASS

_variableResolvers

protected java.util.List _variableResolvers
Holds list of variable resolvers for Spring core (3.0 and later), Spring security(3.0 and later)

Constructor Detail

DelegatingVariableResolver

public DelegatingVariableResolver()
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 interface org.zkoss.xel.VariableResolver
Overrides:
resolveVariable in class org.zkoss.zkplus.spring.DelegatingVariableResolver

hashCode

public int hashCode()
Overrides:
hashCode in class org.zkoss.zkplus.spring.DelegatingVariableResolver

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class org.zkoss.zkplus.spring.DelegatingVariableResolver


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.