public class MuleArtifactDescriptorTransformer extends Object implements ReproducibleResourceTransformer
| Constructor and Description |
|---|
MuleArtifactDescriptorTransformer(List<PackageRelocation> relocations) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTransformResource(String resource) |
boolean |
hasTransformedResource() |
void |
modifyOutputStream(JarOutputStream os) |
void |
processResource(String resource,
InputStream is,
List<Relocator> relocators)
Transform an individual resource
|
void |
processResource(String resource,
InputStream is,
List<Relocator> relocators,
long time)
Transform an individual resource
|
public MuleArtifactDescriptorTransformer(List<PackageRelocation> relocations)
public boolean canTransformResource(String resource)
canTransformResource in interface ResourceTransformerpublic void processResource(String resource, InputStream is, List<Relocator> relocators) throws IOException
ResourceTransformerprocessResource in interface ResourceTransformerresource - The resource nameis - An input stream for the resource, the implementation should *not* close this streamrelocators - A list of relocatorsIOException - When the IO blows uppublic void processResource(String resource, InputStream is, List<Relocator> relocators, long time) throws IOException
ReproducibleResourceTransformerprocessResource in interface ReproducibleResourceTransformerresource - The resource nameis - An input stream for the resource, the implementation should *not* close this streamrelocators - A list of relocatorstime - the time of the resource to processIOException - When the IO blows uppublic boolean hasTransformedResource()
hasTransformedResource in interface ResourceTransformerpublic void modifyOutputStream(JarOutputStream os) throws IOException
modifyOutputStream in interface ResourceTransformerIOExceptionCopyright © 2002–2021 The Apache Software Foundation. All rights reserved.