Class SpringExpressionLinkedField

All Implemented Interfaces:
INameable, MetadataNode

public class SpringExpressionLinkedField extends LinkedField
A MetadataNode that add a link to a DataNode at a path calculated from a given Spring Expression. If the evaluation of the expression fails, it will return the error message instead. The expression is designed to support objects as well as object defined in Jython Name Space in GDA. It also support a list of SpEL-functions defined in SpELUtils class. SpEL functions when used must be defined in a Map with the entry key to be the name of the method, the entry value to be a list of fully qualified class names. Example of usage in bean definition:
 
	<bean class="gda.spring.spel.SpringExpressionLinkedField" init-method="init">
		<property name="name" value="energy"/>
		<property name="expression" value="(100.0 - @iddgap.getPosition()) > 2.0 ? '/entry/instrument/id/idd/energy' : '/entry/instrument/id/idu/energy'"/>
	</bean>
 
 
where '@iddgap' is a reference to a scannable instance defined in SpEL object format.
Since:
9.37