Make the Hibernate parts of the Kernel useable without the ComponentManager

Description

At the moment if you want to do some integration tests involving the Sakai hibernate classes you need to have the ComponentManager up and running. Even if you don't actually start the component manager it tries to start up through calls to the static covers.

The classes should be refactored to have their dependencies injected or where this isn't possible have the class be ApplicationContextAware to that it can fetch it's dependency from the application context.

Activity

Hudson CI Server October 24, 2012 at 9:16 AM

Integrated in kernel-trunk #560 (See http://builds.sakaiproject.org:8080/job/kernel-trunk/560/)
Refactor ComponentManager calls out of hibernate code (Revision 115060)

Result = SUCCESS

Matthew Buckett October 24, 2012 at 8:58 AM

Fixed by injecting dependencies where needed and making the beans applicationcontextaware where that wasn't possible (because bean lookup comes from passed parameter).

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Created October 24, 2012 at 7:37 AM
Updated April 25, 2018 at 3:19 PM
Resolved October 24, 2012 at 8:58 AM