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 SummaryFieldsModifier and TypeFieldDescriptionprotected RootAccessorprotected Containerprotected TextProviderprotected XWorkConverter
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
OgnlValueStackFactorypublic OgnlValueStackFactory()
 
- 
- 
Method Details- 
setXWorkConverter
- 
setCompoundRootAccessor
- 
setMethodAccessorprotected void setMethodAccessor(ognl.MethodAccessor methodAccessor) 
- 
setTextProvider
- 
createValueStackDescription copied from interface:ValueStackFactoryGet a new instance ofValueStack- Specified by:
- createValueStackin interface- ValueStackFactory
- Returns:
- a new ValueStack.
 
- 
createValueStackDescription copied from interface:ValueStackFactoryGet a new instance ofValueStack- Specified by:
- createValueStackin interface- ValueStackFactory
- Parameters:
- stack- an existing stack to include.
- Returns:
- a new ValueStack.
 
- 
createValueStack
- 
setContainerPropertyAccessor'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.
- 
registerAdditionalMethodAccessorsprotected 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
 
 
-