MovingBlocks / DestinationSol

Official continuation of Destination Sol, the great fun little arcade space shooter from http://sourceforge.net/projects/destinationsol/ Modules live at https://github.com/DestinationSol/
Apache License 2.0
325 stars 122 forks source link

Follow-ups for Gestalt-DI #659

Open BenjaminAmos opened 2 years ago

BenjaminAmos commented 2 years ago

Some things that could be improved on after merging #622:

DarkWeird commented 2 years ago

Try to find a better alternative to EventReceiverServiceRegistry. It uses the older getSubtypesOf method, which might be better replaced with newer automatic techniques now provided by gestalt-di.

It uses new getSubtypesOf :3 I change behaviour of similar methods from scanning or using reflections cache to use gestalt-di indexing(@Index annotation)

But yeah. I imagine that target usage should be something like injecting some collection with event handlers... But gestalt-di don't generate this code yet. Another throuble - backward injecting(injecting from child beancontexts) is not tested yet.. potentially even work.