com.hazelcast.buildutils
Class HazelcastManifestTransformer

java.lang.Object
  extended by org.apache.maven.plugins.shade.resource.ManifestResourceTransformer
      extended by com.hazelcast.buildutils.HazelcastManifestTransformer
All Implemented Interfaces:
org.apache.maven.plugins.shade.resource.ResourceTransformer

public class HazelcastManifestTransformer
extends org.apache.maven.plugins.shade.resource.ManifestResourceTransformer

This transformer implementation is used to merge MANIFEST and OSGi bundle metadata in conjunction with the Maven Shade plugin when integrating multiple dependencies into one output JAR


Constructor Summary
HazelcastManifestTransformer()
           
 
Method Summary
 boolean canTransformResource(String resource)
           
 boolean hasTransformedResource()
           
 void modifyOutputStream(JarOutputStream jarOutputStream)
           
 void processResource(String resource, InputStream inputStream, List<org.apache.maven.plugins.shade.relocation.Relocator> relocators)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HazelcastManifestTransformer

public HazelcastManifestTransformer()
Method Detail

canTransformResource

public boolean canTransformResource(String resource)
Specified by:
canTransformResource in interface org.apache.maven.plugins.shade.resource.ResourceTransformer
Overrides:
canTransformResource in class org.apache.maven.plugins.shade.resource.ManifestResourceTransformer

processResource

public void processResource(String resource,
                            InputStream inputStream,
                            List<org.apache.maven.plugins.shade.relocation.Relocator> relocators)
                     throws IOException
Specified by:
processResource in interface org.apache.maven.plugins.shade.resource.ResourceTransformer
Overrides:
processResource in class org.apache.maven.plugins.shade.resource.ManifestResourceTransformer
Throws:
IOException

hasTransformedResource

public boolean hasTransformedResource()
Specified by:
hasTransformedResource in interface org.apache.maven.plugins.shade.resource.ResourceTransformer
Overrides:
hasTransformedResource in class org.apache.maven.plugins.shade.resource.ManifestResourceTransformer

modifyOutputStream

public void modifyOutputStream(JarOutputStream jarOutputStream)
                        throws IOException
Specified by:
modifyOutputStream in interface org.apache.maven.plugins.shade.resource.ResourceTransformer
Overrides:
modifyOutputStream in class org.apache.maven.plugins.shade.resource.ManifestResourceTransformer
Throws:
IOException


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.