com.itmusings.stm.action.scriptsupport
Class BaseCustomComponentPropertiesAction<T>

java.lang.Object
  extended by com.itmusings.stm.impl.STMActionBase<T>
      extended by 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

Field Summary
protected  ComponentPropertiesHelper componentPropertiesHelper
           
protected  boolean enableInlineScriptsInProperties
           
 
Constructor Summary
BaseCustomComponentPropertiesAction()
           
 
Method Summary
 java.lang.String getComponentProperty(T flowContext, java.lang.String propertyName)
           
 boolean isEnableInlineScriptsInProperties()
           
 void setComponentPropertiesHelper(ComponentPropertiesHelper cph)
           
 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 com.itmusings.stm.impl.STMActionBase
cleanUp, doExecute, doSetup, execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componentPropertiesHelper

protected ComponentPropertiesHelper componentPropertiesHelper

enableInlineScriptsInProperties

protected boolean enableInlineScriptsInProperties
Constructor Detail

BaseCustomComponentPropertiesAction

public BaseCustomComponentPropertiesAction()
Method Detail

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.