Class ForwardingScanner

java.lang.Object
com.atlassian.plugin.loaders.classloading.ForwardingScanner
All Implemented Interfaces:
Scanner

public class ForwardingScanner extends Object implements Scanner
Forwarding delegate for a Scanner.
Since:
3.0.8
  • Constructor Details

    • ForwardingScanner

      public ForwardingScanner(Scanner delegate)
  • Method Details

    • scan

      public Collection<DeploymentUnit> scan()
      Description copied from interface: Scanner
      Scan for new deployment units. On the first scan, all deployment units that the scanner can find will be returned. Subsequent scans will only return deployment units that are new since the last scan (or call to reset() or clear())
      Specified by:
      scan in interface Scanner
      Returns:
      all new deployment units since the last scan
    • getDeploymentUnits

      public Collection<DeploymentUnit> getDeploymentUnits()
      Description copied from interface: Scanner
      Gets all deployment units currently being tracked by the scanner. This will not trigger a scan, meaning that plugins that have been added since the last scan will not be returned.
      Specified by:
      getDeploymentUnits in interface Scanner
      Returns:
      a collection of all deployment units currently being tracked by the scanner.
    • reset

      public void reset()
      Description copied from interface: Scanner
      Reset the scanner. This causes it to forget all state about which plugins have (or haven't) been loaded.
      Specified by:
      reset in interface Scanner
    • remove

      public void remove(DeploymentUnit unit)
      Description copied from interface: Scanner
      Remove the specified deployment unit in such a way as it will not be picked up by subsequent scans, even if the system is restarted.
      Specified by:
      remove in interface Scanner
      Parameters:
      unit - the deployment unit to remove