com.springsource.bundlor.internal.support
Class PropertiesFileArtifactAnalyzer

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

public final class PropertiesFileArtifactAnalyzer
extends java.lang.Object
implements ArtefactAnalyser

An analyzer for the properties files in a web application. Analyzers the list of package names that are found in various places in the file.

Concurrent Semantics
Threadsafe

Author:
Ben Hale

Constructor Summary
PropertiesFileArtifactAnalyzer()
           
 
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

PropertiesFileArtifactAnalyzer

public PropertiesFileArtifactAnalyzer()
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.