Package org.zkoss.spring.init
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected org.springframework.context.ApplicationContextGet the spring application context.inthashCode()resolveVariable(String name) Get the spring bean by the specified name.
-
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
Get the spring bean by the specified name.- Specified by:
resolveVariablein interfaceorg.zkoss.xel.VariableResolver- Parameters:
name- the spring bean name- Returns:
- the bean found by that name or null
-
hashCode
public int hashCode() -
equals
-