|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.zkplus.cdi.DelegatingVariableResolver
public class DelegatingVariableResolver
Generic CDI EL named managed bean resolver.
Constructor Summary | |
---|---|
DelegatingVariableResolver()
|
Method Summary | |
---|---|
java.lang.Object |
resolveVariable(java.lang.String name)
Resolves the specified variable. |
java.lang.Object |
resolveVariable(XelContext ctx,
java.lang.Object base,
java.lang.Object name)
Resolves the the given variable on the given base object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingVariableResolver()
Method Detail |
---|
public java.lang.Object resolveVariable(java.lang.String name) throws XelException
VariableResolver
resolveVariable
in interface VariableResolver
name
- the name of the variable to resolve
XelException
public java.lang.Object resolveVariable(XelContext ctx, java.lang.Object base, java.lang.Object name) throws XelException
VariableResolverX
It resolves not only top-level variables but also properties.
For example, when resloving
foo.duke
,
resolveVariable(ctx, null, "foo")
is called first.
And if it returns an non-null object,
resolveVariable(ctx, foo, "duke"),/code> is called then
(where we assume the returned object in the previous call is
foo
).
resolveVariable
in interface VariableResolverX
ctx
- the context of this evaluationbase
- the base object whose property value is to be returned,
or null to reslove a top-level variable.name
- the name of the variable (or property) to resolve
XelException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |