Implementation of AbstractConditionElementParser for UrlReadingCondition.
For backwards compatibility, this supports classes that are instances of either
Condition (deprecated for web-resources since 3.0) or UrlReadingCondition. If it's a legacy Condition is specified,
makeConditionImplementation() will return the Condition wrapped in a DecoratingLegacyCondition.
This has some extra semantics around the class attribute:
-
The "class" attribute may represent a UrlReadingCondition or a legacy Condition.
If a legacy Condition is specified, makeConditionImplementation() will return an instance of the
Condition wrapped in a DecoratingLegacyCondition.
-
If the "class2" attribute is specified, makeConditionImplementation() will create an instance of the class
specified by class2.
This enables plugins that target multiple versions of the plugin framework to supply a legacy
Condition implementation via the "class" attribute while leveraging the new
UrlReadingCondition in newer versions of the plugin framework.