Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [transformer-dev] Class loader transformations

Hi,

You might find these to be of interest:

https://github.com/eclipse/transformer/blob/main/org.eclipse.transformer/src/test/java/transformer/test/TransformClassLoader.java

https://github.com/eclipse/transformer/blob/main/org.eclipse.transformer/src/test/java/transformer/test/TestTransformClass.java

The first wires a class transform action into a class loader.  Transformations are performed on loaded resources

The second has a few tests which exercise the class loader.

Thanks!

Thomas F. Bitonti


Inactive hide details for "Basil Crow" ---01/09/2022 08:21:46 PM---Thanks for this project! I was delighted to read this: > Pos"Basil Crow" ---01/09/2022 08:21:46 PM---Thanks for this project! I was delighted to read this: > Possible secondary use cases are as follows

From: "Basil Crow" <me@xxxxxxxxxxxxx>
To: transformer-dev@xxxxxxxxxxx
Date: 01/09/2022 08:21 PM
Subject: [EXTERNAL] [transformer-dev] Class loader transformations
Sent by: "transformer-dev" <transformer-dev-bounces@xxxxxxxxxxx>





Thanks for this project! I was delighted to read this:

> Possible secondary use cases are as follows: Classloading case: A java class action is created and initialized, and is wired into a custom class loader. When loading resources, in particular, when loading a class resource, the java class action is used to transform the contents of the resource before making them available to the class loader.

I implemented a prototype of this for Jenkins in the following PR:
https://github.com/jenkinsci/jenkins/pull/6085  You can see the result
in JakartaCompatibilityTransformer, JenkinsClassLoader,
AntClassLoader, and URLClassLoader2. It seems to work as advertised.
_______________________________________________
transformer-dev mailing list
transformer-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/transformer-dev




GIF image


Back to the top