Versions Compared

Key

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

...

In the resources directory of a certain module, a Spring file can be added if it matches the following pattern: "spring/spring-dspace-addon-*-services.xml". An example of this can be found in the dspace-discovery-solr block in the DSpace trunk. (spring-dspace-addon-discovery-services.xml)
Wherever this jar is loaded (JSPUI in a Maven module, XMLUI module, DSpace command line, ...) the Spring files will be processed into services.

...

  • api: when placed in this module the Spring files will always be processed into services (since all of the DSpace modules are dependent on the API).
  • discovery: when placed in this module the Spring files will only be processed when the discovery library is present (in the case of discovery in the xmlui & in the command line interface).
  • jspui: only processed for the JSPUI.
  • xmlui: only processed for the XMLUI (example: the configurable workflow).

The reason why there is a separate directory is that if a service cannot be loaded, which would the case for the configurable workflow (the JSPUI would not be able to retrieve the XMLUI interface classes), the kernel will crash and DSpace will not start.

...