hibernate/hibernate-search — pull request #307 by Sanne (2012-06-20 23:47:42+00:00)
Title: HSEARCH-1162 Shutdown services in dependency order

Used more aggressive locking to simplify code, as the ServiceManager is not a hot path at all and likely doesn't even need to be accessed by multiple threads.

Also introduced checks against circular dependencies in dependencies across services.

https://hibernate.onjira.com/browse/HSEARCH-1162