| |
|
| java.lang.Object org.apache.xmlgraphics.util.Service
Service | public class Service (Code) | | 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.
author: Thomas DeWeese version: $Id: Service.java 496556 2007-01-16 00:59:48Z cam $ |
Method Summary | |
public static synchronized Iterator | providers(Class cls) Returns an iterator where each element should implement the
interface (or subclass the baseclass) described by cls. | public static synchronized Iterator | providers(Class cls, boolean returnInstances) Returns an iterator where each element should implement the
interface (or subclass the baseclass) described by cls. |
providers | public static synchronized Iterator providers(Class cls)(Code) | | 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. |
providers | public static synchronized Iterator providers(Class cls, boolean returnInstances)(Code) | | 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 if returnInstances is true.
Parameters: cls - The class/interface to search for providers of. Parameters: returnInstances - true if the iterator should return instances rather than class names. |
|
|
|