public final class Service
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static java.util.Iterator<java.lang.String> |
providerNames(java.lang.Class<?> cls) |
Returns an iterator where each element should be the name
of a class that implements the
interface (or subclass the baseclass) described by cls.
|
static java.util.Iterator<java.lang.Object> |
providers(java.lang.Class<?> cls) |
Returns an iterator where each element should implement the
interface (or subclass the baseclass) described by cls.
|
static java.util.Iterator<?> |
providers(java.lang.Class<?> cls,
boolean returnInstances) |
Deprecated.
use the type-safe methods providers(Class) or providerNames(Class) instead.
|
public static java.util.Iterator<java.lang.Object> providers(java.lang.Class<?> cls)
cls
- The class/interface to search for providers of.public static java.util.Iterator<java.lang.String> providerNames(java.lang.Class<?> cls)
cls
- The class/interface to search for providers of.public static java.util.Iterator<?> providers(java.lang.Class<?> cls, boolean returnInstances)
cls
- The class/interface to search for providers of.returnInstances
- true if the iterator should return instances rather than class names.Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.