public class DatabaseStartupValidator
Bean that checks if a database has already started up. To be referenced
via "depends-on" from beans that depend on database startup, like a Hibernate
SessionFactory or custom data access objects that access a DataSource directly.
Useful to defer application initialization until a database has started up.
Particularly appropriate for waiting on a slowly starting Oracle database.