public abstract class ResourceTransformer
extends Object
Resource transformer tries to convert given resource to another resource(s) by applying configured transformation
rules.
Cannot be used concurrently by multiple threads as instances of this class are not thread safe.
The implementation of this method potentially transforms the supplied resource.
The resource can be a regular class file or configuration text file or some other kind of files.
If the implementing method detects no transformation is needed it must return empty array.
Otherwise it must create a new resource (or new resources) containing transformed resource
(potentially additional created resources). If return value contains more than one resource then
resource at array index zero is always considered to be replacement of original resource
and other resources (since array index of 1 including) represent additional resources
created dynamically that must be added to target environment (e.g. jar archive or defining class loader).
either empty array if no transformation is performed or
a new resource (or multiple resources) representing transformed resource (or potentially additional created
resources)