posted 9 years ago
what makes spring container maintain lifecycle and resources of an object? Is it only when the object is instantiated using spring config files? If I extend a spring class, for example, I extend LDAPContextSource and instantiate an object of the extended class in my java module (and not via spring config files) will this object be maintained by spring? I am mainly asking if spring will still manage the resources and connection pooling for this context source.