Package net.shibboleth.shared.primitive
Class DeprecationSupport
java.lang.Object
net.shibboleth.shared.primitive.DeprecationSupport
Helper methods for reporting usage of deprecated features.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType of object, setting, feature, etc. -
Field Summary
FieldsModifier and TypeFieldDescriptionTracks issued at-risks.private static final org.slf4j.LoggerClass logger.static final StringLog category name for warnings.Tracks issued warnings. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidatRisk(DeprecationSupport.ObjectType type, String name, String context) Emit an at-risk warning for an object or feature of the system.static voidatRiskOnce(DeprecationSupport.ObjectType type, String name, String context) Emit a deprecation warning for an object or feature of the system but limit to a single warning for the life of the process or until state is cleared.static voidClear the previously at-risk state.static voidClear the previously warned state.static voidwarn(DeprecationSupport.ObjectType type, String name, String context, String replacement) Emit a deprecation warning for an object or feature of the system.static voidwarnOnce(DeprecationSupport.ObjectType type, String name, String context, String replacement) Emit a deprecation warning for an object or feature of the system but limit to a single warning for the life of the process or until state is cleared.
-
Field Details
-
LOG_CATEGORY
Log category name for warnings.- See Also:
-
LOG
@Nonnull private static final org.slf4j.Logger LOGClass logger. -
WARNED_SET
Tracks issued warnings. -
AT_RISK_SET
Tracks issued at-risks.
-
-
Constructor Details
-
DeprecationSupport
private DeprecationSupport()Constructor.
-
-
Method Details
-
clearWarningState
public static void clearWarningState()Clear the previously warned state. -
clearAtRiskState
public static void clearAtRiskState()Clear the previously at-risk state.- Since:
- 4.3.0