Services directly@Deprecated public final class LegacyServices extends Object
Services utility to help migrate away from Classes.newInstance(String).
TODO: remove before v1.0| Constructor and Description |
|---|
LegacyServices()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
loadFirst(Class<T> spi)
Deprecated.
Wraps
Services.loadFirst and throws a UnknownClassException instead of a
UnavailableImplementationException to retain the previous behavior. |
public static <T> T loadFirst(Class<T> spi)
Services.loadFirst and throws a UnknownClassException instead of a
UnavailableImplementationException to retain the previous behavior. This method should be used when
to retain the previous behavior of methods that throw an unchecked UnknownClassException.T - the type of object to returnspi - the class for which to find the first instanceT found from a call to Services.loadFirst(Class)Copyright © 2014–2022 jsonwebtoken.io. All rights reserved.