you should use Java ServiceLoader that is a builtin class. It is capable of iterating at runtime over all know service (interface) implementations.
If for some reason you don't want it, you can use ClassLoader.getSystemResources() to iterate over all resources; e.g. if you have 6 times the file /META-INF/com.interface you'll get 6 iterations.