|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.deployment.annotations.analyzer.AnnotationDeploymentAnalyzer
public class AnnotationDeploymentAnalyzer
This class finds the annotated class and fill metadata class.
Field Summary | |
---|---|
private java.io.File |
archive
Archive which will be analyzed. |
private EjbJarAnnotationMetadata |
ejbJarAnnotationMetadata
Metadata representing the parsed ejb-jar file. |
private static JLog |
logger
Logger. |
private ScanClassVisitor |
scanVisitor
ASM visitor used to visit classes. |
Constructor Summary | |
---|---|
AnnotationDeploymentAnalyzer(java.io.File archive)
Constructor. Archive which will be used when analyzing. |
Method Summary | |
---|---|
void |
analyze()
Analyzes the archive and fill metadata struct. |
EjbJarAnnotationMetadata |
getEjbJarAnnotationMetadata()
|
private void |
scanDirectory(java.io.File directory)
Scan (recursively) all classes from the given directory. |
private void |
scanJarArchive()
Scan all classes from the archive which is a jar file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.io.File archive
private EjbJarAnnotationMetadata ejbJarAnnotationMetadata
private static JLog logger
private ScanClassVisitor scanVisitor
Constructor Detail |
---|
public AnnotationDeploymentAnalyzer(java.io.File archive)
archive
- the archive to analyze.Method Detail |
---|
public void analyze() throws AnalyzerException
AnalyzerException
- if analyze of archive failsprivate void scanJarArchive() throws AnalyzerException
AnalyzerException
- if scan is aborted.private void scanDirectory(java.io.File directory) throws AnalyzerException
directory
- the directory in which proceed all classes.
AnalyzerException
- if analyzer fails to scan classes.public EjbJarAnnotationMetadata getEjbJarAnnotationMetadata()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |