Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [emf-dev] EMF interface instance access pattern

Those patterns appear in may places and others have complained:

  https://bugs.eclipse.org/bugs/show_bug.cgi?id=329209

Certainly with alternative service-based patterns and with things like modern dependency injection frameworks, one could imagine doing many things quite differently.

On 09.07.2019 11:27, Alexander Fedorov wrote:
Hello,

In EMF runtime and generated code there is a "interface instance access" pattern like:

  public interface Registry
  {
    public static final Registry INSTANCE = new RegistryImpl();
  }

It is good and stable. It works perfect.
However, it may look "too static" for OSGi-based approach where interface should not reference its implementation.

How would you implement it today for OSGi-oriented architecture executed by 1.8+ Java?

Thanks,
AF

_______________________________________________
emf-dev mailing list
emf-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/emf-dev


Back to the top