org.designwizard.extractor
Interface Extractor

All Known Implementing Classes:
ASMExtractor

public interface Extractor


Method Summary
 void addListener(ExtractionListener listener)
          Adds a listener that is interested in this extractor.
 void processClass(java.lang.String classFilePath)
          Extracts facts from the given .class file.
 void processDir(java.lang.String directoryPath)
          Extracts from the specified directory file with the specified directoryPath.
 void processEar(java.lang.String pathOfEarFile, java.lang.String... internalPath)
          Extracts from the ear file with the specified pathOfEarFile.
 void processJar(java.lang.String pathOfJarFile)
          Extracts facts from the jar file with the specified pathOfJarFile.
 

Method Detail

processJar

void processJar(java.lang.String pathOfJarFile)
                throws java.io.IOException
Extracts facts from the jar file with the specified pathOfJarFile.

Parameters:
pathOfJarFile - The path of the jar file.
Throws:
java.io.IOException - If an I/O error occurs.

processEar

void processEar(java.lang.String pathOfEarFile,
                java.lang.String... internalPath)
                throws java.io.IOException
Extracts from the ear file with the specified pathOfEarFile.

Parameters:
pathOfEarFile - The path of the ear file.
Throws:
java.io.IOException - If an I/O error occurs.

addListener

void addListener(ExtractionListener listener)
Adds a listener that is interested in this extractor.

Parameters:
listener - The extraction listener.

processDir

void processDir(java.lang.String directoryPath)
                throws java.io.IOException
Extracts from the specified directory file with the specified directoryPath.

Parameters:
directoryPath - The path of the directory.
Throws:
java.io.IOException - If an I/O error occurs.

processClass

void processClass(java.lang.String classFilePath)
                  throws java.io.IOException
Extracts facts from the given .class file.

Parameters:
classFilePath - The path of the .class file.
Throws:
java.io.IOException