--
You received this message because you are subscribed to the Google Groups "Spring Framework for Delphi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spring4d+u...@googlegroups.com.
To post to this group, send email to spri...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
That will not work unless you cause the linker to not remove the class after compilation because it will not referenced anywhere.
When I need to do that I usually add a TMyClass.ClassName; call in the initialization part but you can easily forget that.
If you are looking for something like that check out https://code.google.com/p/delphisorcery/source/browse/trunk/Source/ComponentModel/DSharp.ComponentModel.Composition.SpringContainer.pas