Class CompositeClassScanner

  • All Implemented Interfaces:
    IClassScanner

    public class CompositeClassScanner
    extends Object
    implements IClassScanner
    A collection of scanners to run to collect classes to modify.
    • Constructor Detail

      • CompositeClassScanner

        public CompositeClassScanner()
    • Method Detail

      • addScanner

        public void addScanner​(IClassScanner classScanner)
      • scanClass

        public boolean scanClass​(Class<?> clazz)
        Description copied from interface: IClassScanner
        Scan this class.
        Specified by:
        scanClass in interface IClassScanner
        Parameters:
        clazz - the class to sacn
        Returns:
        true if we should include this class
      • scanAll

        public Class<?>[] scanAll​(Instrumentation inst)
        Scan the loaded classes for classes we should modify.
        Parameters:
        inst - the instrumentation
        Returns:
        an array of classes to modify
      • isComplete

        public boolean isComplete()
        Description copied from interface: IClassScanner
        Is this class scanner complete.
        Specified by:
        isComplete in interface IClassScanner
        Returns:
        true if this scanner has nothing more to find