Loads a new context based on the supplied
locations, configures the context, and finally returns
the context in fully refreshed state.
Configuration locations are generally considered to be classpath
resources by default.
Concrete implementations should register annotation configuration
processors with bean factories of application
contexts loaded by this ContextLoader. Beans will therefore automatically
be candidates for annotation-based dependency injection using
Any ApplicationContext loaded by a ContextLoader must
register a JVM shutdown hook for itself. Unless the context gets closed
early, all context instances will be automatically closed on JVM
shutdown. This allows for freeing external resources held by beans within
the context, e.g. temporary files.
locations - the resource locations to use to load the application context