Package org.apache.batik.util
Class Service
java.lang.Object
org.apache.batik.util.Service
This class handles looking up service providers on the class path.
It implements the system described in:
JAR
File Specification Under Service Provider. Note that this
interface is very similar to the one they describe which seems to
be missing in the JDK.
- Version:
- $Id: Service.java 1810083 2017-09-29 10:39:45Z ssteiner $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
providerMap
-
-
Constructor Details
-
Service
public Service()
-
-
Method Details
-
providers
Returns an iterator where each element should implement the interface (or subclass the baseclass) described by cls. The Classes are found by searching the classpath for service files named: 'META-INF/services/<fully qualified classname> that list fully qualifted classnames of classes that implement the service files classes interface. These classes must have default constructors.- Parameters:
cls
- The class/interface to search for providers of.
-