e(fx)clipse runtime recipes


This is just a short notice to all user of e(fx)clipse runtime bundles. e(fx)clipse runtime provides many cool features most people don’t know about yet (e.g. our DI support for FXML-Controllers, the adapter system, …). So I started collecting them in our wiki at https://wiki.eclipse.org/Efxclipse/Runtime/Recipes.

Some of them are not bound to JavaFX, like our logging support, the adapter system and the @ContextValue annotation. I’m sure there’s more. If you have a recipe how you solved a common problem with e(fx)clipse runtime feel free to contribute.

About these ads

2 Responses to “e(fx)clipse runtime recipes”

  1. Hi Tom,

    great idea to provide such a wiki.

    Quick question for “Extending the AdapterService with an AdapterProvider”: Can the source and target class be part of the DS registration too? Which means, can they be mentioned as a service property for faster election of the provider via a service filter, or do you use an internal mapping for finding correct AdapterProvider?

    And another small Question about injection of OSGi services: Why isn’t there already an annotation which allows me to define a filter for selecting the correct/particular service (e.g.: @ServiceFilter( “(my.service.property=42)” ) )? Because as you’ve already noticed in the wiki there could be multiple services which implement a particular interface and the only chance to get the correct one is by specifying a higher service.ranking. This annotation would allow you to define your own properties on which you want to rely on.

    Ndt
    René

    • ad 1. I use an internal Map for fast look ups
      ad 2. if you file a bug report I think adding an @ServiceFilter annotation is possible – there are pros and cons about adding such a thing but the blog is the wrong area to discuss this

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 714 other followers

%d bloggers like this: