The Artima Developer Community
Sponsored Link

Java Buzz Forum
What i am missing from the Jar Service Provider spec

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Marc Logemann

Posts: 594
Nickname: loge
Registered: Sep, 2002

Marc Logemann is founder of www.logentis.de a Java consultancy
What i am missing from the Jar Service Provider spec Posted: Nov 30, 2006 2:10 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Marc Logemann.
Original Post: What i am missing from the Jar Service Provider spec
Feed Title: Logemann Blog
Feed URL: http://www.logemann.org/blojsom/blog/default/?flavor=rss2
Feed Description: Marc's thoughts on Java and more
Latest Java Buzz Posts
Latest Java Buzz Posts by Marc Logemann
Latest Posts From Logemann Blog

Advertisement

I am about to create plugins that should be discovered during runtime by our application. The user can then chose the plugin (meaning the class implementing a specific interface here) he wants to use. So far this is an easy task, see here how to do it the sun way. Now there is one thing that is annoying. Our application is a web application and as long as the plugins are in WEB-INF/lib, everything is fine. But i also want to have some plugins right inside WEB-INF/classes, so i thought i could just add the needed definition file under META-INF/services of the WAR file. But this is not working at all.

To get it running it seems i need to refactor out the plugin classes from WEB-INF/classes of my WAR into a seperate JAR (with the needed META-INF stuff inside the JAR) which i will place in WEB-INF/lib then. It would be so more convenient to do it the way i wanna do it. All in all this whole plugin idea could be enhanced so much more, i think sun has not overperformed in that area. Take alone the package name of the needed Service class which is sun.misc.Service. Not very cross-jdk as you can see.

Read: What i am missing from the Jar Service Provider spec

Topic: HtmlCleaner Initial Release Previous Topic   Next Topic Topic: [Nov 27, 2006 06:30 PST] 6 Links

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use