public final class ServiceFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static BodyFactory |
bodyFactory()
Helper method to provide an implementation of
BodyFactory. |
static ConfigurationModelAccessorFactory |
configurationModelAccessorFactory()
Helper method to provide an implementation of
ConfigurationModelAccessorFactory |
static <T> List<Class<?>> |
getImplClasses(Class<T> clazz)
Acquires the list of implementation classes when multiple classes may be provided.
|
static <T> List<T> |
getImplInstances(Class<T> clazz)
Acquires the list of the implementation instances when multiple instances may be provided.
|
static <T> T |
getSingleImpl(Class<T> clazz)
Acquires the implementation when one and only one implementation is expected.
|
static HeadersFactory |
headersFactory()
Helper method to provide an implementation of
HeadersFactory. |
static <T> boolean |
isValidImplName(Class<T> spiClazz,
String classname)
Checks whether the given classname is a valid implementation of the SPI class.
|
public static <T> List<Class<?>> getImplClasses(Class<T> clazz)
T - The interface type.clazz - The class representing the interface for which to look for registered implementations.public static <T> T getSingleImpl(Class<T> clazz)
T - The interface type.clazz - The class representing the Interface for which to look for registered implementations.RuntimeException - when errors are encountered.public static <T> List<T> getImplInstances(Class<T> clazz)
T - The interface type.clazz - The class representing the Interface for which to look for registered implementations.public static <T> boolean isValidImplName(Class<T> spiClazz, String classname)
T - The interface type.spiClazz - The SPI class to be checked against.classname - The classname to be validated.public static BodyFactory bodyFactory()
BodyFactory.HeadersFactory.public static HeadersFactory headersFactory()
HeadersFactory.HeadersFactory.public static ConfigurationModelAccessorFactory configurationModelAccessorFactory()
ConfigurationModelAccessorFactoryConfigurationModelAccessorFactoryCopyright 2023 Ping Identity Corp. All rights reserved.