cstamas commented on code in PR #201: URL: https://github.com/apache/maven-resolver/pull/201#discussion_r995932176
########## 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: It is FILO, or what do you mean? List is populated in "reverse" order while processed (handlers triggered) in "normal" order (from apsect of the List) => FILO - last triggered handler is first added. -- 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