public interface DeprecationWarning
Modifier and Type | Method and Description |
---|---|
void |
componentParameter(ComponentResources resources,
String parameterName,
String message)
Used to identify a component parameter that has been deprecated.
|
void |
componentParameterValue(ComponentResources resources,
String parameterName,
Object parameterValue,
String message)
Used to identify a specific parameter value that is no longer supported.
|
void |
ignoredComponentParameters(ComponentResources resources,
String... parameterNames)
The most common case: checks to see if the parameter name is bound and if so emits a warning that the parameter
is ignored and will be removed.
|
void componentParameter(ComponentResources resources, String parameterName, String message)
resources
- identifies the component, including its locationparameterName
- name of the deprecated parametermessage
- message to display; typically explains what action will be taken, such as simply ignoring the parameter entirely. This should clarify
the issue to the developer, guiding them towards resolving the deprecation, typically be eliminating
the parameter entirely.void ignoredComponentParameters(ComponentResources resources, String... parameterNames)
resources
- identifies the component, including its locationparameterNames
- names of the deprecated parametersvoid componentParameterValue(ComponentResources resources, String parameterName, Object parameterValue, String message)
resources
- identifies the component, including its location.parameterName
- name of parameter containing illegal value.parameterValue
- value that is not supported (typically, an enum type). May be null.message
- message to display; typically explains that action will be taken, such as treating the value as an alternate value,
or simply ignoring the value. This should clarify the issue to the developer, guiding them towards resolving
the deprecation, by changing the value, or eliminating the use of the parameter entirely.5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.