Spring Component Module – Old Style
Confluence 2.2 and later
Confluence 2.10 - use the new Component Module Type instead
Old-Style Plugin Module Type
We recommend that you use the new plugin module type, rather than the old-style Spring Component described below. Confluence still supports the earlier module type, but the new OSGi-based plugin framework fixes a number of bugs and limitations experienced by the old-style plugin modules.
Purpose of this Module Type
A Spring module allows you to use standard Spring XML configuration tags.
A Spring module appears in
atlassian-plugin.xml like this:
The above is equivalent to the following configuration in
Ordering of Components
If you declare a Spring component that refers to another Spring component, you must ensure the referred component is declared first. For example:
beanB refers to
beanA and that
beanA is declared before beanB. If you don't do it in this order, Confluence will complain that
beanA does not exist.