>> Ah, OK. I have considered a similar extensibility mechanism in the past, >> using a static map of file extension to Serializer<Image> that the Image >> class would use to determine how to load a given image URL. But maybe a >> service provider would work better. > > Does that mean you would reconsider your '-1'? :)
Not as originally proposed, no. :-) But if it were implemented as an extensibility mechanism, yes. > I think a service provider is a good fit in this case and would remove > the build time dependency on the SVG jar from projects that don't care > about SVGs. Note that there is no build-time dependency on SVG Salamander for projects - only for the platform.
