com.springsource.bundlor.support.asm
Class AsmTypeArtefactAnalyser
java.lang.Object
com.springsource.bundlor.support.asm.AsmTypeArtefactAnalyser
- All Implemented Interfaces:
- ArtifactAnalyzer
public final class AsmTypeArtefactAnalyser
- extends java.lang.Object
- implements ArtifactAnalyzer
ArtifactAnalyzer implementation that uses ASM to scan .class files for dependencies and exports.
Concurrent Semantics
Threadsafe.
- Author:
- Rob Harrop
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AsmTypeArtefactAnalyser
public AsmTypeArtefactAnalyser()
analyse
public void analyse(java.io.InputStream artefact,
java.lang.String artefactName,
PartialManifest model)
throws java.lang.Exception
- Description copied from interface:
ArtifactAnalyzer
- Analyse the supplied artefact and update the supplied
PartialManifest as needed.
- Specified by:
analyse in interface ArtifactAnalyzer
model - the PartialManifest to update.
- Throws:
java.lang.Exception - if an error occurs during scanning.
canAnalyse
public boolean canAnalyse(java.lang.String artefactName)
- Description copied from interface:
ArtifactAnalyzer
- Can this
ArtifactAnalyzer analyse the artefact with the supplied name.
- Specified by:
canAnalyse in interface ArtifactAnalyzer
- Returns:
true if the artefact can be analysed; otherwise false.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object