slachiewicz opened a new pull request, #2348:
URL: https://github.com/apache/maven-resolver/pull/2348

   Adds default `canHandle(String)` and `getDescription()` methods to 
`TransporterFactory`, returning `true` and an empty string so existing 
implementations keep source and binary compatibility. Built-in factories 
override the methods where the protocol is decisive; `FileTransporterFactory` 
and `WagonTransporterFactory` deliberately report `true` because installed file 
system providers and Wagon providers decide from the complete repository, which 
keeps `symlink+file`, `hardlink+file`, JIMFS and custom protocols working. 
`DefaultTransporterProvider` pre-filters on `canHandle` while keeping 
`newInstance` authoritative, including its `NoTransporterException` for direct 
callers, and records declined factories in the diagnostic. This is deliberately 
narrower than #1771: no `getProperties()` SPI, no protocol checks removed from 
`newInstance`, and no existing test coverage weakened.
   
   Fixes #1770


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to