This page last changed on Feb 15, 2009 by edawson.

Module Descriptor

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 the following code in a Spring context file:

<bean id="componentName" class="com.example.MyComponent">
... standard Spring configuration XML ...
</bean>

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.

Document generated by Confluence on Nov 11, 2009 21:21