public interface MyWellDefinedBoundary { ... }
Edit: I should say this is what OSGi was good for. Now it's been replaced, its need is greater than ever.
Type systems and APIs do that, but only within a single language.
Edit: I should say this is what OSGi was good for. Now it's been replaced, its need is greater than ever.