Package org.zkoss.zkplus.cdi
Class DelegatingVariableResolver
java.lang.Object
org.zkoss.zkplus.cdi.DelegatingVariableResolver
- All Implemented Interfaces:
VariableResolver,VariableResolverX
Generic CDI EL named managed bean resolver.
Applicable to CDI version 1.0 or later
- Author:
- henrichen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()resolveVariable(String name) Resolves the specified variable.resolveVariable(XelContext ctx, Object base, Object name) Resolves the the given variable on the given base object.
-
Constructor Details
-
DelegatingVariableResolver
public DelegatingVariableResolver()
-
-
Method Details
-
resolveVariable
Description copied from interface:VariableResolverResolves the specified variable.- Specified by:
resolveVariablein interfaceVariableResolver- Parameters:
name- the name of the variable to resolve- Throws:
XelException
-
resolveVariable
Description copied from interface:VariableResolverXResolves the the given variable on the given base object.It resolves not only top-level variables but also properties. For example, when resolving
foo.duke,resolveVariable(ctx, null, "foo")is called first. And if it returns an non-null object,resolveVariable(ctx, foo, "duke")is called then (where we assume the returned object in the previous call isfoo).- Specified by:
resolveVariablein interfaceVariableResolverX- Parameters:
ctx- the context of this evaluationbase- the base object whose property value is to be returned, or null to resolve a top-level variable.name- the name of the variable (or property) to resolve- Throws:
XelException
-
hashCode
public int hashCode() -
equals
-