List<BeanDefinition> dependencyChain = ordering.sort();
Visitors.constructorArgsInstantiator(this).visitAll(dependencyChain);
for(BeanDefinition definition: context.values()) {
if(Lifecycle.class.isAssignableFrom(definition.getType())) {
Lifecycle lifecycle = (Lifecycle) definition.getPayload();
lifecycle.start();
}
if(ContainerAware.class.isAssignableFrom(definition.getType())) {
((ContainerAware) definition.getPayload()).setContainer(this);
}
}