serviceloader Questions

5

What are the best practices for using ServiceLoader in an Environment with multiple ClassLoaders? The documentation recommends to create and save a single service instance at initialization: priva...
Hectograph asked 12/8, 2011 at 11:31

1

Solved

I am using Maven with Eclipse (using M2E) to build a project that relies on java.util.ServiceLoader to dynamically load some factory classes. It works fine when I run it in Maven, but when I run a ...
Marcelina asked 25/8, 2011 at 3:4

1

Solved

I am writing a web app in Eclipse. I am trying to use the ServiceLoader class to load some plugins. The docs for ServiceLoader say I need to place a file in META-INF/services. I have placed the ...
Hemihydrate asked 6/8, 2010 at 2:51

2

Solved

Being someone who is allergic to dependencies, when would I use something like OSGi instead of the built in java 6 http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html (I want to let ...
Kenzie asked 24/12, 2009 at 22:53

© 2022 - 2024 — McMap. All rights reserved.