Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4721

ConcatBundleResource is unnecessarily limited to accepting PackageResourceReference

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.0.0-beta3
    • 6.0.0
    • None
    • None

    Description

      ConcatBundleResource (and ConcatResourceBundleReference) are currently limited to concatenating resources of the type PackageResource.

      The only methods of the specified PackageResource's used by ConcatBundleResource are PackageResource#getCacheKey() and PackageResource#getResourceStream().

      The implementation of PackageResource#getResourceStream() is (nearly) identical to PackageResource#getCacheableResourceStream().

      The methods PackageResource#getCacheKey() and PackageResource#getCacheableResourceStream() are both implemented as part of the interface IStaticCacheableResource.

      ConcatBundleResource (and ConcatResourceBundleReference) should, in my vision, therefor be able to concatenate all resources that implement IStaticCacheableResource.

      Attachments

        1. WICKET-4721-simple.patch
          5 kB
          Emond Papegaaij
        2. WICKET-4721-generics.patch
          125 kB
          Emond Papegaaij

        Activity

          People

            papegaaij Emond Papegaaij
            lukedjn Luke Niesink
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: