public final class Service extends Object
限定符和类型 | 方法和说明 |
---|---|
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)
已过时。
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 1999-2016 The Apache Software Foundation. All Rights Reserved.