This is an implementation of the ObjectFactory interface which simply delegates to
the Spring ApplicationContext. Since the delegation happens each time a call to
getOrCreate() is made, this will correctly handle Spring beans which are
non-singletons (factory beans, etc.)
Singleton usage:
Non-singleton usage: