Class Deprecation
java.lang.Object
org.apache.myfaces.tobago.internal.util.Deprecation
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.slf4j.Logger
This Logger object should help to detect the usage of deprecated code. -
Method Summary
-
Field Details
-
LOG
public static final org.slf4j.Logger LOGThis Logger object should help to detect the usage of deprecated code. The main reason for this class is the lack of a "deprecated concept" for tag libraries. Thought the designer of a Tobago page cannot see in his IDE that a tag or attribute is deprecated.The Tobago Java code will log into this Logger object, with
error
- when the code is deprecated with a loss of function, or
warn
- when the code is deprecated, but still works.
This Logger category can be switched off, in production environment without affecting the normal logging category. Nevertheless, this logger should be avoided in production mode to minimize the effort required for log configuration. Use something like
if (! production) { Deprecation.LOG.warn("..."); }
-