Details
Description
When call the ConfigurerImpl.addApplicationContext(ctx) to add a new application context, we need to check if the ConfigureImpl's ApplicationContext is closed.
Since if we closed the application context which the ConfigureImpl has and add a new application context to it, we will got the exception of "BeanFactory not initialized or already closed".
And this is a common use case in OSGi world, such as refresh a OSGi Bundle with a camel-cxf route.
I workaround this issue by clean up the BusFactory default factory[1] when the application context is closed, but we still need to fix this issue in CXF.