public final class Service extends Object
Modifier and Type | Method and Description |
---|---|
static Iterator<String> |
providerNames(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 Iterator<Object> |
providers(Class<?> cls)
Returns an iterator where each element should implement the
interface (or subclass the baseclass) described by cls.
|
static Iterator<?> |
providers(Class<?> cls,
boolean returnInstances)
Deprecated.
use the type-safe methods providers(Class) or providerNames(Class) instead.
|
public static Iterator<Object> providers(Class<?> cls)
cls
- The class/interface to search for providers of.public static Iterator<String> providerNames(Class<?> cls)
cls
- The class/interface to search for providers of.public static Iterator<?> providers(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 © 2017 Apache Software Foundation. All rights reserved.