Class LoggingDeprecationHandler
- java.lang.Object
-
- org.elasticsearch.common.xcontent.LoggingDeprecationHandler
-
- All Implemented Interfaces:
DeprecationHandler
public class LoggingDeprecationHandler extends java.lang.Object implements DeprecationHandler
Logs deprecations to theDeprecationLogger.This is core's primary implementation of
DeprecationHandlerand should absolutely be used everywhere where it parses requests. It is much less appropriate when parsing responses from external sources because it will report deprecated fields back to the user as though the user sent them.
-
-
Field Summary
Fields Modifier and Type Field Description static LoggingDeprecationHandlerINSTANCE-
Fields inherited from interface org.elasticsearch.common.xcontent.DeprecationHandler
THROW_UNSUPPORTED_OPERATION
-
-
Method Summary
Modifier and Type Method Description voidusedDeprecatedField(java.lang.String usedName, java.lang.String replacedWith)voidusedDeprecatedName(java.lang.String usedName, java.lang.String modernName)
-
-
-
Field Detail
-
INSTANCE
public static LoggingDeprecationHandler INSTANCE
-
-
Method Detail
-
usedDeprecatedName
public void usedDeprecatedName(java.lang.String usedName, java.lang.String modernName)- Specified by:
usedDeprecatedNamein interfaceDeprecationHandler
-
usedDeprecatedField
public void usedDeprecatedField(java.lang.String usedName, java.lang.String replacedWith)- Specified by:
usedDeprecatedFieldin interfaceDeprecationHandler
-
-