Class 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

      Fields 
      Modifier and Type Field Description
      protected org.seasar.framework.container.S2Container _container  
    • 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.
      • 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