ch.jm.osgi.util.bundle 1.0.0

ch.jm.osgi.util.bundle
Class WarProcessor

java.lang.Object
  extended by ch.jm.osgi.util.bundle.WarProcessor

public class WarProcessor
extends java.lang.Object

The class facilitates the processing of a whole WAR file for dependency analysis.


Constructor Summary
WarProcessor(java.io.File warFile)
          Creates a new WAR processor.
 
Method Summary
 void analyze(DependencyAnalyzer analyzer)
          Analyues the WAR file with the given DependencyAnalyzer.
 void close()
          Closes the WAR file, disposes of temporary files.
 java.util.Collection<java.lang.String> getWarClasspath()
          Returns the WAR classpath.
 java.io.File getWARFile()
          Returns the WAR file this instance operates on.
static boolean isWARFile(java.io.File warFile)
          Checks whether the given file is a WAR file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WarProcessor

public WarProcessor(java.io.File warFile)
             throws java.io.IOException
Creates a new WAR processor.

Parameters:
warFile - the WAR file
Throws:
java.io.IOException - if an I/O error occurs
Method Detail

analyze

public void analyze(DependencyAnalyzer analyzer)
             throws java.io.IOException
Analyues the WAR file with the given DependencyAnalyzer.

Parameters:
analyzer - the dependency analyzer
Throws:
java.io.IOException - if an I/O error occurs

getWARFile

public java.io.File getWARFile()
Returns the WAR file this instance operates on.

Returns:
the WAR file

getWarClasspath

public java.util.Collection<java.lang.String> getWarClasspath()
Returns the WAR classpath.

Returns:
the WAR classpath

close

public void close()
           throws java.io.IOException
Closes the WAR file, disposes of temporary files.

Throws:
java.io.IOException - if an I/O error occurs

isWARFile

public static boolean isWARFile(java.io.File warFile)
                         throws java.io.IOException
Checks whether the given file is a WAR file.

Parameters:
warFile - the file to inspect
Returns:
true if it is a WAR file
Throws:
java.io.IOException - if an I/O error occurs

ch.jm.osgi.util.bundle 1.0.0

Copyright 2009-2010 Jeremias M?rki. All Rights Reserved.