Class JarClassesExposer
- java.lang.Object
-
- org.apache.maven.shared.jar.identification.exposers.JarClassesExposer
-
- All Implemented Interfaces:
JarIdentificationExposer
public class JarClassesExposer extends java.lang.Object implements JarIdentificationExposer
Exposer that examines a JAR file to derive Maven metadata from the classes in a JAR. It will currently identify potential group IDs from the class packages. Note: if not being used from Plexus, thesetAnalyzer(org.apache.maven.shared.jar.classes.JarClassesAnalysis)
method must be called to avoid a NullPointerException during the expose method.
-
-
Constructor Summary
Constructors Constructor Description JarClassesExposer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
expose(JarIdentification identification, JarAnalyzer jarAnalyzer)
Expose metadata during the identification process.void
setAnalyzer(JarClassesAnalysis analyzer)
-
-
-
Method Detail
-
expose
public void expose(JarIdentification identification, JarAnalyzer jarAnalyzer)
Description copied from interface:JarIdentificationExposer
Expose metadata during the identification process.- Specified by:
expose
in interfaceJarIdentificationExposer
- Parameters:
identification
- the identification record to populate with the exposed metadatajarAnalyzer
- the JAR to obtain the information from. Should be treated as read only, with the exception of caching the metadata if it would be identical when run over the same file again.
-
setAnalyzer
public void setAnalyzer(JarClassesAnalysis analyzer)
-
-