To create a Spring component in a plugin configure a module like this:
<spring key="componentName" class="com.example.MyComponent"> ... standard Spring configuration XML ... </spring> |
The above module is equivalent to having:
<bean id="componentName" class="com.example.MyComponent"> ... standard Spring configuration XML ... </bean> |
in a Spring context file.
Note that the spring component modules are created in order of their declaration, and that a component created by an earlier module cannot depend on a component created by a later module.