In the search module the org.infinispan.query.impl.LifecycleManager is registered via the infinispan-module.properties, but the method
Is invoked twice for each cache initialization.
The implementation needs to register an interceptor, and some objects in the componentregistry. The tricky part is that some of these components are overwritten, some are not, leading to an inconsistent initialization (Query was made useless).
I'm working around this in Query to register my needed components only if they're not already, but this is inconsistent as well as I might need to reconfigure it.