Class CoreVariableResolver

java.lang.Object
org.zkoss.spring.init.CoreVariableResolver
All Implemented Interfaces:
Serializable, org.zkoss.xel.VariableResolver

public class CoreVariableResolver extends Object implements org.zkoss.xel.VariableResolver, Serializable
VariableResolver for the ZK Spring Core module.
Since:
3.0
Author:
henrichen
See Also:
  • Field Details

    • _ctx

      protected transient org.springframework.context.ApplicationContext _ctx
  • Constructor Details

    • CoreVariableResolver

      public CoreVariableResolver()
  • Method Details

    • getApplicationContext

      protected org.springframework.context.ApplicationContext getApplicationContext()
      Get the spring application context.
      Returns:
      the current application context
    • resolveVariable

      public Object resolveVariable(String name)
      Get the spring bean by the specified name.
      Specified by:
      resolveVariable in interface org.zkoss.xel.VariableResolver
      Parameters:
      name - the spring bean name
      Returns:
      the bean found by that name or null
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object