Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Child pages (Children Display)

Overview

FIXEdge Java functionality can be extended with custom modules if it is required. New logic can be integrated via Spring configuration files. FIXEdge Java proposed config file conf/spring/custom-ext.xml as a default extension point. It is expected that custom beans will be added there.

Also conf/spring/custom-ext.xml already includes two java beans for extending the Groovy rules with custom functionality:  

  • List bean with id "customBLImports" allows extending the default imports for groovy scripts:
Code Block
languagexml
<util:list id="customImports" value-type="java.lang.String">
	<!--Example of import value-->
	<value>java.util.concurrent.atomic.AtomicInteger</value>
</util:list>
  • Map bean with id "customBLBeans" allows adding custom beans as variables to groovy scripts:
Code Block
languagexml
<util:map id="customAdditionalProperties" key-type="java.lang.String">
	<!--Example-->
    <!-- exampleBean now is accessible in Groovy scripts -->
	<entry key="exampleBean" value-ref="testBean"/>
</util:map>

<bean id="testBean" class="java.lang.Object"/>