Let's say I have 2 beans, Bean A and Bean B. Bean A is a dependency of Bean B. Let's assume I have specified a destroy method for Bean A but not for Bean B. By logic, Bean B should first be destroyed and then Bean A should be destroyed on shutdown. Does Bean B ceases to exist even if no destroy method is specified? If Bean B actually doesn't get destroyed then does Bean A also not get destroyed even though a destroy method has been specified for it?