Unsupported Release

This documentation relates to DSpace 1.8.x, an old, unsupported version. Looking for another version? See all documentation.

As of January 2015, DSpace 1.8.x is no longer supported. We recommend upgrading to a more recent version of DSpace. See DSpace Software Support Policy.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Introduction

The DSpace Spring Service Manager supports overring configuration at many levels.

Configuration

Configuring Addons to Support Spring Services

Configuring Addons to support spring happens at two levels, default spring configuration is available int he dspace jar resources or war resources directory and allows the addon developer to inject their configuration into the service manager at load time. The secon level is in teh deployed dspace.dir config/spring director where configurations can be provided on a addon module by addon module basis.

This latter method requires the addon to implement a SpringLoader to identify the location to look for spring configuration and a place configuration files into that location. This can be seen inside the current [dspace-src]/config/modules/spring.cfg

Configuration Priorities

The ordering of the loading of Spring configuration is the following:

  1. configPath = "spring/spring-dspace-applicationContext.xml" relative the current classpath
  2. addonResourcePath = "classpath*:spring/spring-dspace-addon-*-services.xml" relative the current classpath
  3. coreResourcePath = "classpath*:spring/spring-dspace-core-services.xml" relative the current classpath
  4. Finally, an array of SpringLoader API implementations that are checked to verify "config/spring/module" can actually be loaded by its existence on the classpath.

The Addon Spring Configuration

Addon Spring Configuration is "overridable" via

 \[addon-src\]/src/main/resources/spring/spring-dspace-addon-\[addon\]-services.xml 

The Core Spring COnfiguration

Utilizing Autowiring to minimize configuration complexity.

TODO: Outline minimal Spring configuration and autowiring support from Tutorial. DSpace Spring Services Tutorial The TAO of DSpace Services

Accessing via Java codeAccessing the Services Via Service Locator

TODO: Provide docs similar to:


new DSpace().getServiceManager().getServiceByName(....);


Architectural Overview

See Architectural Overview here DSpace Services Framework

Service Manager Startup in Webapplications and CLI

TODO: Outline start process.

  • No labels