xtclang / xvm

Ecstasy and XVM
Other
201 stars 17 forks source link

Add "Linker.collectInjectables" API #195

Closed ggleyzer closed 6 months ago

ggleyzer commented 6 months ago

While working on the Platform functionality, I realize that we're missing support for an important step during application deployment. A deployed module(s) may require a number of injectable properties that would need to be setup by the deployment registration process. To facilitate collection of the necessary data, the UI (or CLI) tool may need to know what are the required injections and present that list to the deployer.

The suggested API would serve that purpose.

ggleyzer commented 6 months ago

I'm afraid the API is not quite right. I just realized that there is a chance for multiple injections of the same name but different type - and that would be perfectly legal. Need to change the method return type, maybe Tuple<String, Type>[]?

Cam, any suggestions?