Class JavaEEScanner<T>

java.lang.Object
org.glassfish.apf.impl.JavaEEScanner<T>
All Implemented Interfaces:
Scanner

public abstract class JavaEEScanner<T> extends Object implements Scanner
Super class for all JavaEE scanners
Author:
Jerome Dochez
  • 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 scanning
      classLoader - the classloader used to scan the annotation
      Throws:
      IOException - if the file cannot be read.
    • getComponentInfo

      public ComponentInfo getComponentInfo(Class<?> componentImpl)
      Description copied from interface: Scanner
      Sometimes, 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:
      getComponentInfo in interface Scanner
      Parameters:
      componentImpl - class of the component.
      Returns:
      ComponentInfo