Services directly@Deprecated
public final class LegacyServices
extends java.lang.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(java.lang.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(java.lang.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.Copyright © 2014-2022 jsonwebtoken.io. All Rights Reserved.