org.apache.avalon.fortress.util
Class Service

java.lang.Object
  |
  +--org.apache.avalon.fortress.util.Service

public final class Service
extends Object

This class handles looking up service providers on the class path. It implements the system described in: File Specification Under Service Provider. Note that this interface is very similar to the one they describe whiehc seems to be missing in the JDK. This class adapted from org.apache.batik.util.Service

Version:
1.0
Author:
Berin Loritsch, Thomas DeWeese

Method Summary
static Iterator providers(Class klass)
          Get all the providers for the specified services.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

providers

public static Iterator providers(Class klass)
Get all the providers for the specified services.

Parameters:
klass - the interface Class
Returns:
an Iterator for the providers.


Copyright © 2000-2002 Apache Avalon Project. All Rights Reserved.