ModedShape does not shutdown cleanly sometimes

Description

The way the ModeShape engine is currently shut down on when Kylo services is stopped is not correct. shutdown() is invoked by the metadata config bean unnecessarily, resulting in the exception BeanCreationNotAllowedException: "Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)".

Environment

None
Done

Assignee

Sean Felten

Reporter

Sean Felten

Labels

None

Reviewer

None

Story point estimate

None

Components

Sprint

None

Fix versions

Affects versions

Priority

Medium