ceylon / ceylon-spec

DEPRECATED
Apache License 2.0
108 stars 34 forks source link

SPI and modularity #1233

Open FroMage opened 9 years ago

FroMage commented 9 years ago

Jigsaw has the notion of incorportating the service-loader Java arch in modularity, by letting modules declare which interfaces (service) they expose, and which implementations they provide, and allowing others to depend on any implementation of this interface.

Not sure if that's something we want to support in Ceylon or if we have another plan at providing this feature, but perhaps it's worth looking into it. Also, perhaps we will need to support some similar abstraction even if just for interop (using Java services or providing implementations of Java services).

luolong commented 9 years ago

On a surface, this sounds awfully lot like OSGi Service Registry...