Hi All,
I've a question on $subject. Currently in Apis.java class I could see
following method;
/**
* Returns the apis located on the classpath via {@link
java.util.ServiceLoader}.
*
* @return all available apis loaded from classpath via ServiceLoader
*/
private static Iterable<ApiMetadata> fromServiceLoader() {
return ServiceLoader.load(ApiMetadata.class);
}
But, in any of the jclouds API jars I couldn't find the relevant config
file that required by Java Service Loader [1].
I'm trying to load some APIs via Eclipse and unable to do so, am guessing
due to this issue. I think the issue is same for any non-OSGi environment.
Can someone please explain this behaviour?
[1] http://www.oracle.com/technetwork/articles/javase/extensible-137159.html
--
Thanks & regards,
Nirmal
Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/