Versions Compared

Key

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

Child pages (Children Display)

...

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

Also The conf/spring/custom-ext.xml already  currently includes two java beans Java Beans for extending the Groovy rules with custom functionalityfunctionalities:  

  • List Listing a bean with id "the customBLImports" ID allows extending the extending default imports for groovy 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" Mapping a Bean with the customBLBeans ID allows adding custom beans Beans as variables to groovy 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"/>

...