hibernate-osgi cleanup on bundle stop

Description

A few areas need cleaned up when the hibernate-osgi bundle is deactivated. Most of them are edge cases, but it's good practice anyway.

1.) null-out ClassLoaderHelper#overridenClassLoader
2.) null-out internal variables
3.) un-register OSGi services

Any others?

Environment

None

Status

Assignee

Brett Meyer

Reporter

Brett Meyer

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major
Configure