michael-o commented on code in PR #201: URL: https://github.com/apache/maven-resolver/pull/201#discussion_r996099460
########## maven-resolver-api/src/main/java/org/eclipse/aether/DefaultRepositorySystemSession.java: ########## @@ -873,4 +888,41 @@ public Collection<FileTransformer> getTransformersForArtifact( Artifact artifact } } + private final CopyOnWriteArrayList<Consumer<RepositorySystemSession>> onCloseHandlers + = new CopyOnWriteArrayList<>(); + + @Override + public void addOnCloseHandler( Consumer<RepositorySystemSession> handler ) + { + verifyStateForMutation(); + requireNonNull( handler, "handler cannot be null" ); + onCloseHandlers.add( 0, handler ); Review Comment: clear -- 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: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org