com.ibm.wsspi.anno.classsource

Interface ClassSource_Streamer


  1. public interface ClassSource_Streamer

Call back type for class source processing.


Method Summary

Modifier and Type Method and Description
  1. boolean
doProcess(java.lang.String className,ClassSource_Aggregate.ScanPolicy scanPolicy)
Tell if a specified class is to be scanned.
  1. boolean
process(java.lang.String classSourceName,java.lang.String className,java.io.InputStream inputStream,ClassSource_Aggregate.ScanPolicy scanPolicy)
Process the data for the specified class.

Method Detail

doProcess

  1. boolean doProcess(java.lang.String className,
  2. ClassSource_Aggregate.ScanPolicy scanPolicy)

Tell if a specified class is to be scanned.

Parameters:
className - The name of the class to test.
scanPolicy - The policy to test against.
Returns:
True if the class is to be processed. Otherwise, false.

process

  1. boolean process(java.lang.String classSourceName,
  2. java.lang.String className,
  3. java.io.InputStream inputStream,
  4. ClassSource_Aggregate.ScanPolicy scanPolicy)
  5. throws ClassSource_Exception

Process the data for the specified class.

Parameters:
classSourceName - The name of the class source which contains the class.
className - The name of the class to process.
inputStream - The stream containing the class data.
scanPolicy - The policy active on the class.
Returns:
True if the class was processed. Otherwise, false.
Throws:
ClassSource_Exception - Thrown if an error occurred while testing the specified class.