com.springsource.bundlor.support.contributors
Class StaticResourceArtefactAnalyser

java.lang.Object
  extended by com.springsource.bundlor.support.contributors.StaticResourceArtefactAnalyser
All Implemented Interfaces:
ArtifactAnalyzer

public final class StaticResourceArtefactAnalyser
extends java.lang.Object
implements ArtifactAnalyzer

An analyzer that detects the packages of static resources

Concurrent Semantics
Threadsafe

Author:
Ben Hale

Constructor Summary
StaticResourceArtefactAnalyser()
           
 
Method Summary
 void analyse(java.io.InputStream artefact, java.lang.String artefactName, PartialManifest partialManifest)
          Analyse the supplied artefact and update the supplied PartialManifest as needed.
 boolean canAnalyse(java.lang.String artifactName)
          Can this ArtifactAnalyzer analyse the artefact with the supplied name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticResourceArtefactAnalyser

public StaticResourceArtefactAnalyser()
Method Detail

analyse

public void analyse(java.io.InputStream artefact,
                    java.lang.String artefactName,
                    PartialManifest partialManifest)
             throws java.lang.Exception
Analyse the supplied artefact and update the supplied PartialManifest as needed.

Specified by:
analyse in interface ArtifactAnalyzer
partialManifest - the PartialManifest to update.
Throws:
java.lang.Exception - if an error occurs during scanning.

canAnalyse

public boolean canAnalyse(java.lang.String artifactName)
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.