Make the Hibernate parts of the Kernel useable without the ComponentManager
GENERAL
TESTING
GENERAL
TESTING
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.
Fixed by injecting dependencies where needed and making the beans applicationcontextaware where that wasn't possible (because bean lookup comes from passed parameter).
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.