Class BaseCustomComponentPropertiesAction<StateEntityType extends StateEntity>
java.lang.Object
org.chenile.stm.impl.STMActionBase<StateEntityType>
org.chenile.stm.action.scriptsupport.BaseCustomComponentPropertiesAction<StateEntityType>
- Type Parameters:
StateEntityType
-
- All Implemented Interfaces:
ComponentPropertiesAware
,STMAutomaticStateComputation<StateEntityType>
- Direct Known Subclasses:
BaseScriptingAction
public class BaseCustomComponentPropertiesAction<StateEntityType extends StateEntity>
extends STMActionBase<StateEntityType>
implements ComponentPropertiesAware
Extend this action if it is desired to obtain access to properties that have been set up per state descriptor in the STD.
- Author:
- Raja Shankar Kolluru
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetComponentProperty
(StateEntityType stateEntity, String propertyName) protected String
getComponentProperty
(StateEntityType stateEntity, String propertyName, String defaultValue) boolean
void
void
setEnableInlineScriptsInProperties
(boolean enableInlineScriptsInProperties) This property is used to enable or disable inline scripts (basically constructs of type "${xxx}somestuff" where xxx needs to be evaluated as an expression on the passed flow context.Methods inherited from class org.chenile.stm.impl.STMActionBase
cleanUp, doExecute, doSetup, execute
-
Field Details
-
componentPropertiesHelper
-
enableInlineScriptsInProperties
protected boolean enableInlineScriptsInProperties
-
-
Constructor Details
-
BaseCustomComponentPropertiesAction
public BaseCustomComponentPropertiesAction()
-
-
Method Details
-
isEnableInlineScriptsInProperties
public boolean isEnableInlineScriptsInProperties() -
setEnableInlineScriptsInProperties
public void setEnableInlineScriptsInProperties(boolean enableInlineScriptsInProperties) Description copied from interface:ComponentPropertiesAware
This property is used to enable or disable inline scripts (basically constructs of type "${xxx}somestuff" where xxx needs to be evaluated as an expression on the passed flow context. The expression is as powerful as the scripting strategy would allow it to be. Some scripting strategies are trivial such as bean-utils. Some of them such as OGNL (which is the default scripting strategy that is supported by STM) can be more powerful.- Specified by:
setEnableInlineScriptsInProperties
in interfaceComponentPropertiesAware
-
setComponentPropertiesHelper
- Specified by:
setComponentPropertiesHelper
in interfaceComponentPropertiesAware
-
getComponentProperty
-
getComponentProperty
protected String getComponentProperty(StateEntityType stateEntity, String propertyName, String defaultValue)
-