• Post Reply Bookmark Topic Watch Topic
  • New Topic

Loading classes from classpath, identified by interface  RSS feed

olze oli
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a little application which handles some logic which should be displayed in a UI - at the moment there is no UI. Now i thought, the UI should be stupid as possible so i can simply replace it (e.g. create a vaadin application, swing, javafx etc.)
So i created a starter class which create my components (the models and the presenters dont change). Now i want to load also the UI in the application, so the UI should have no starter class. I thought something like this:

application (.jar) :

view (separate .jar)

The advantage would be that there is absolutely no logic in the UI, except for showing/updating the values. Is this possible? Is this a "good" way or do i simply oversee something?
I am wondering if this is possible. I tried it with:

but i dont get any class returned and i dont understand why. I tried it with  org.reflections 0.9.10
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!