org.zkoss.zkplus.seasar
Class DelegatingVariableResolver

java.lang.Object
  extended by 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 of org.seasar.framework.container.S2Container. The _container is get from SingletonS2ContainerFactory.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
protected  org.seasar.framework.container.S2Container _container
           
 
Constructor Summary
DelegatingVariableResolver()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.Object resolveVariable(java.lang.String name)
          Get the seasar component by the specified name.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_container

protected org.seasar.framework.container.S2Container _container
Constructor Detail

DelegatingVariableResolver

public DelegatingVariableResolver()
Method Detail

resolveVariable

public java.lang.Object resolveVariable(java.lang.String name)
Get the seasar component by the specified name.

Specified by:
resolveVariable in interface VariableResolver
Parameters:
name - the name of the variable to resolve

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo