Package org.glassfish.apf.impl
Class JavaEEScanner<T>
java.lang.Object
org.glassfish.apf.impl.JavaEEScanner<T>
- All Implemented Interfaces:
Scanner
Super class for all JavaEE scanners
- Author:
- Jerome Dochez
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComponentInfo(Class<?> componentImpl) Sometimes, annotations processing requires more than a single class, especially when such classes end up being a Java Component (Java Beans, Java EE).protected abstract voidprocess(File archiveFile, T descriptor, ClassLoader classLoader) Scan the archive file and gather a list of classes that should be processed for anntoationsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.glassfish.apf.Scanner
getClassLoader, getElements
-
Constructor Details
-
JavaEEScanner
public JavaEEScanner()
-
-
Method Details
-
process
protected abstract void process(File archiveFile, T descriptor, ClassLoader classLoader) throws IOException Scan the archive file and gather a list of classes that should be processed for anntoations- Parameters:
archiveFile- the archive file for scanningclassLoader- the classloader used to scan the annotation- Throws:
IOException- if the file cannot be read.
-
getComponentInfo
Description copied from interface:ScannerSometimes, annotations processing requires more than a single class, especially when such classes end up being a Java Component (Java Beans, Java EE). The implementation returned from the getComponent will be responsible for defining the complete view of this component starting from it's implementation class.- Specified by:
getComponentInfoin interfaceScanner- Parameters:
componentImpl- class of the component.- Returns:
ComponentInfo
-