Uploaded image for project: 'Santuario'
  1. Santuario
  2. SANTUARIO-377

Proposed implementation change for ResourceResolverSpi

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java 2.0.0
    • Java 2.0.0
    • Java
    • None

    Description

      I just migrated an application from Santuario 1.5.x to 2.0.0-rc1

      The migration was rather painless, which is good
      however I noticed one API change that would have been much more obvious if the implementation of org.apache.xml.security.utils.resolver.ResourceResolverSpi
      would be different.

      public boolean engineCanResolveURI(ResourceResolverContext context)
      and
      public XMLSignatureInput engineResolveURI(ResourceResolverContext context)
      both have a default implementation that just throws a UnsupportedOperationException.

      My proposal is to change these methods to be abstract methods.
      That way the compiler will immediately point out the API change when migrating.

      Attachments

        1. resolver.patch
          1 kB
          Michael Haeusler

        Activity

          People

            coheigea Colm O hEigeartaigh
            mhaeusle Michael Haeusler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: