Uploaded image for project: 'Spring Data GemFire'
  1. Spring Data GemFire
  2. SGF-257

Specify strict type rules in the Spring Data GemFire XSD for peer Region 'data-policy' and 'shortcut' attributes as currently enforced by the <gfe:client-region> element's 'shortcut' attribute.

    XMLWordPrintable

    Details

      Description

      Currently, the <gfe:client-region> element's shortcut attribute limits the attribute's allowed values based on an enumeration of the GemFire's ClientRegionShortcut enum, using a <xsd:restriction base="xsd:string"> followed by <xsd:enumeration> values.

      The same XSD restrictions should be applied to <gfe:local-region/>, <gfe:partitioned-region/> and <gfe:replicated-region/> elements' data-policy and shortcut attributes.

      In addition, the same restriction needs to be applied to the <gfe:client-region/>'s data-policy attribute.

      This is meant to discourage the use of the both the data-policy and shortcut attributes in favor of SDG's high-level XSD namespace abstractions for the various peer Region types (such as Local, Partitioned and Replicated given by the namespaces elements mentioned above) in combination with the persistent attribute.

      I.e., it will not longer be possible for users to use Property Placeholder values in these attributes, and so, if users specify these attributes explicitly in their SDG config, given the validation that must occur (such as verifying a persistent DataPolicy matches the value for the persistent attribute on the Region when also specified), then they must be exact an unambiguous, or rather resolvable as parse-time.

      It is important to point out that a user can achieve anything in SDG'S XML namespace that can be achieved with either the DataPolicy or Region Shortcuts.

      This issue directly correlated to the work being done in SGF-88.

        Attachments

          Activity

            People

            Assignee:
            jblum John Blum
            Reporter:
            jblum John Blum
            Last updater:
            Trevor Marshall Trevor Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1d
                1d
                Remaining:
                Time Spent - 0.5d Remaining Estimate - 0.5d
                0.5d
                Logged:
                Time Spent - 0.5d Remaining Estimate - 0.5d
                0.5d