how java.util.ServiceLoader works?
<pre><code>ServiceLoader&lt;A&gt; xyz = ServiceLoader.load(A.class);

xyz.iterator().hasNext() ------&gt; returning false ;
</code></pre>

<p>I have a text file in "META-INF/services/" named  A containing the name of the class which extends A.</p>

<p>Now why it is returning false .</p>

<p>can anyone please explain me how exactly this works and what may i'm missing .</p>
