Correct use of CdmApplicationDefaultConfiguration
To me it seems as if the the
CdmApplicationDefaultConfiguration is not used in the right way throughout in the cdmlib. This might be due by the name which has been given to this class. This class actually is the central access point to all cdm api services and thus to all the entities stored in the cdm. From this point of view this class provides the "repository" view on the cdm which has been discussed with Ben in December 2009 at the final EDIT General Meeting in Paris. Calling this class a "configuration" is not wrong per se but it makes only sense if you see it under the aspect of Spring configuration. For an application programmer it actually is the repository to by which you can access everything.
CdmApplicationDefaultConfigurationshould be named like
- All classes autowiring any service class should rather be autowiring
CdmApplicationDefaultConfigurationwheras the injection should happen at an abtsract base class. #6420
- CdmIoBase must not extend the CdmApplicationDefaultConfiguration, instead inject it as bean, this avoids multiple instantiations and a lot of unnecessary bean injection and thus would for sure speed up the application context intitialization. #5393