drombler-fx

Activating an OSGI LogListener before other services?

▼魔方 西西 提交于 2020-01-04 11:41:40
问题 I am writing a OSGI-based desktop application, using Apache Felix, Declarative Services and Maven. It's going to use JavaFX, so I'm using Drombler FX too. In the bundles I develop, I'd like to use an appropriate logging mechanism, and I'm currently trying to make Apache Felix Log work. I have no problem getting a LogService but this is not sufficient to make output appear on the console. The word on the net is that Everit's osgi-loglistener-slf4j will do the job and – sure enough – after osgi

Activating an OSGI LogListener before other services?

回眸只為那壹抹淺笑 提交于 2020-01-04 11:40:05
问题 I am writing a OSGI-based desktop application, using Apache Felix, Declarative Services and Maven. It's going to use JavaFX, so I'm using Drombler FX too. In the bundles I develop, I'd like to use an appropriate logging mechanism, and I'm currently trying to make Apache Felix Log work. I have no problem getting a LogService but this is not sufficient to make output appear on the console. The word on the net is that Everit's osgi-loglistener-slf4j will do the job and – sure enough – after osgi

How do I use an osgi service in a dockable?

杀马特。学长 韩版系。学妹 提交于 2020-01-03 02:51:06
问题 If I have for example a class that is used as a dockable window by annotating it, how am I supposed to use an osgi service in that class? The best would be to have it as a private member field. 回答1: You can eg. use a ServiceTracker: import org.osgi.framework.BundleContext; import org.osgi.framework.FrameworkUtil; import org.osgi.framework.ServiceReference; import org.osgi.util.tracker.ServiceTracker; import org.osgi.util.tracker.ServiceTrackerCustomizer; ... @ViewDocking(...) public class

Running the sample application using “mvn exec:exec” doesn't work

家住魔仙堡 提交于 2019-12-02 08:38:29
问题 I'm following the Getting Started version 0.9. I can run the sample application with the full "java -Duser.lan..." command and the double-click on the foo.jar, but when I try the mvn exec:exec alternative it doesn't work. Here the error in console: CI0011766:drombler-test-application claudiorosati$ mvn exec:exec [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building drombler-test-application 1.0.0-SNAPSHOT [INFO]