com.itmusings.stm.action.scriptsupport
Class BaseCustomComponentPropertiesAction<T>
java.lang.Object
com.itmusings.stm.impl.STMActionBase<T>
com.itmusings.stm.action.scriptsupport.BaseCustomComponentPropertiesAction<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- ComponentPropertiesAware, STMAction<T>
- Direct Known Subclasses:
- BaseScriptingAction
public class BaseCustomComponentPropertiesAction<T>
- extends STMActionBase<T>
- 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
componentPropertiesHelper
protected ComponentPropertiesHelper componentPropertiesHelper
enableInlineScriptsInProperties
protected boolean enableInlineScriptsInProperties
BaseCustomComponentPropertiesAction
public BaseCustomComponentPropertiesAction()
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 interface ComponentPropertiesAware
setComponentPropertiesHelper
public void setComponentPropertiesHelper(ComponentPropertiesHelper cph)
- Specified by:
setComponentPropertiesHelper
in interface ComponentPropertiesAware
getComponentProperty
public java.lang.String getComponentProperty(T flowContext,
java.lang.String propertyName)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2011 ITMUSINGS. All Rights Reserved.