Description
Just found the the isStarted() is used for starting the components in CamelContext when the CamelContext is starting,
The change of isStarted() recently will broke below code.
public boolean isStarted() { return started.get()&&!starting.get(); }
public Component getComponent(String name) { // synchronize the look up and auto create so that 2 threads can't // concurrently auto create the same component. synchronized (components) { Component component = components.get(name); if (component == null && autoCreateComponents) { try { component = getComponentResolver().resolveComponent(name, this); if (component != null) { addComponent(name, component); if (isStarted()) { // If the component is looked up after the context is started, // lets start it up. startServices(component); } } } catch (Exception e) { throw new RuntimeCamelException("Could not auto create component: " + name, e); } } return component; } }
so I want to add isStratingFinished() method to check if the starting process is finished.