com.springsource.bundlor.internal.support
Class StaticResourceArtefactAnalyser

java.lang.Object
  extended by com.springsource.bundlor.internal.support.StaticResourceArtefactAnalyser
All Implemented Interfaces:
ArtefactAnalyser

public class StaticResourceArtefactAnalyser
extends java.lang.Object
implements ArtefactAnalyser

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 artefactName)
          Can this ArtefactAnalyser 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 ArtefactAnalyser
Parameters:
artefact - the artefact to scan.
artefactName - the name of the artefact.
partialManifest - the PartialManifest to update.
Throws:
java.lang.Exception - if an error occurs during scanning.

canAnalyse

public boolean canAnalyse(java.lang.String artefactName)
Can this ArtefactAnalyser analyse the artefact with the supplied name.

Specified by:
canAnalyse in interface ArtefactAnalyser
Parameters:
artefactName - the name of the artefact.
Returns:
true if the artefact can be analysed; otherwise false.