Package org.apache.struts2.ognl
Class OgnlValueStackFactory
java.lang.Object
org.apache.struts2.ognl.OgnlValueStackFactory
- All Implemented Interfaces:
ValueStackFactory
Creates an Ognl value stack
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RootAccessorprotected Containerprotected TextProviderprotected XWorkConverter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a new instance ofValueStackcreateValueStack(ValueStack stack) Get a new instance ofValueStackprotected ValueStackcreateValueStack(ValueStack stack, boolean useTextProvider) protected voidNote that the defaultMethodAccessorfor handlingObjectmethods is registered insetMethodAccessor(ognl.MethodAccessor)and can be configured using the extension pointStrutsConstants.STRUTS_METHOD_ACCESSOR.protected voidprotected voidprotected voidsetCompoundRootAccessor(RootAccessor compoundRootAccessor) protected voidsetContainer(Container container) PropertyAccessor's,MethodAccessor's andNullHandler's are registered on a per-class basis by defining a bean adhering to the corresponding interface with a name corresponding to the class it is intended to handle.protected voidsetMethodAccessor(ognl.MethodAccessor methodAccessor) protected voidsetTextProvider(TextProvider textProvider) protected voidsetXWorkConverter(XWorkConverter converter)
-
Field Details
-
xworkConverter
-
compoundRootAccessor
-
textProvider
-
container
-
-
Constructor Details
-
OgnlValueStackFactory
public OgnlValueStackFactory()
-
-
Method Details
-
setXWorkConverter
-
setCompoundRootAccessor
-
setMethodAccessor
protected void setMethodAccessor(ognl.MethodAccessor methodAccessor) -
setTextProvider
-
createValueStack
Description copied from interface:ValueStackFactoryGet a new instance ofValueStack- Specified by:
createValueStackin interfaceValueStackFactory- Returns:
- a new
ValueStack.
-
createValueStack
Description copied from interface:ValueStackFactoryGet a new instance ofValueStack- Specified by:
createValueStackin interfaceValueStackFactory- Parameters:
stack- an existing stack to include.- Returns:
- a new
ValueStack.
-
createValueStack
-
setContainer
PropertyAccessor's,MethodAccessor's andNullHandler's are registered on a per-class basis by defining a bean adhering to the corresponding interface with a name corresponding to the class it is intended to handle.The only exception is the
MethodAccessorfor theObjecttype which has its own extension point. -
registerAdditionalMethodAccessors
protected void registerAdditionalMethodAccessors()Note that the defaultMethodAccessorfor handlingObjectmethods is registered insetMethodAccessor(ognl.MethodAccessor)and can be configured using the extension pointStrutsConstants.STRUTS_METHOD_ACCESSOR. -
registerNullHandlers
- Throws:
ClassNotFoundException
-
registerPropertyAccessors
- Throws:
ClassNotFoundException
-