Beans
Spring bean definitions for custom beans that cannot be expressed as Groovy classes.
|
Attribute |
Details |
|---|---|
|
Purpose |
Define Spring beans — custom processors, calculators, utility beans |
|
Format |
XML — Spring bean definitions |
|
Naming |
By function: |
|
Loaded by |
Spring context at startup |
Example: beans/custom-beans.xml
XML
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="calculateProblemScore" class="net.pricefx.integration.command.cfs.Calculate">
<property name="cfsLabel" value="ProblemScoreCFS"/>
</bean>
</beans>
See Also
-
Classes (Groovy) — Custom Groovy classes (alternative to XML beans)
-
Routes — Beans are referenced in routes by ID