How Can I modify a method from a java Impl class ?
Hi, what I want to do is to modify the Container component method so that the background asset that the user uploaded is transformed to webp through the adobe API.
This component have a few modifications in the design of the authoring dialog so is a proxy component.
I have investigated how to extend or modify core components but my problem is the following:
From what I read from the documentation, this is the sling model of Container:
Being the variable:
backgroundImageReference
The user's asset (being like the fileReference that is usually called like this in other components)
The thing here, is that this model doesn't include the getter method of backgroundImageReference (the user asset) to be able to modify it and add the API to convert to webp.
Instead, what it does is that the variable of the backgroundImageReference asset is renamed with the name: PN_BACKGROUND_IMAGE_REFERENCE and sends it to another java class which is an Impl class called ContainerImpl which is the following one:
And when I want to import or access that class it doesn't let me, in fact it doesn't even exist to import but that class has the getter method where I need to add the API.
What can I do to access that method and be able to modify it?