Package org.zkoss.zkplus.seasar
Class DelegatingVariableResolver
- java.lang.Object
-
- org.zkoss.zkplus.seasar.DelegatingVariableResolver
-
- All Implemented Interfaces:
VariableResolver
public class DelegatingVariableResolver extends java.lang.Object implements VariableResolver
DelegatingVariableResolver, a seasar2 bean variable resolver.It defines a variable called
_container
to represent the instance oforg.seasar.framework.container.S2Container
. The _container is get fromSingletonS2ContainerFactory.getContainer()
.Usage:
in your zul file:
<?variable-resolver class="org.zkoss.zkplus.seasar.DelegatingVariableResolver"?>
Applicable to Seasar Framework version 2.4 or later
- Since:
- 3.0.0
- Author:
- Dennis.Chen
-
-
Field Summary
Fields Modifier and Type Field Description protected org.seasar.framework.container.S2Container
_container
-
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)
Get the seasar component by the specified name.
-
-
-
Method Detail
-
resolveVariable
public java.lang.Object resolveVariable(java.lang.String name)
Get the seasar component by the specified name.- 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
-
-