| java.lang.Object | |
| ↳ | com.atlassian.plugin.loaders.DirectoryScanner |
Scans the filesystem for changed or added plugin files and stores a map of the currently known ones. Files beginning with "." are ignored.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for scanner.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Tells the Scanner to forget about a file it has loaded so that it will reload it
next time it scans.
| |||||||||||
Retrieve all the
DeploymentUnits currently stored. | |||||||||||
Given a file, finds the deployment unit for it if one has already been scanned.
| |||||||||||
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.
| |||||||||||
Clears the list of scanned deployment units.
| |||||||||||
Scans for all files and directories that have been added or modified since the
last call to scan.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.plugin.loaders.classloading.Scanner
| |||||||||||
Constructor for scanner.
| pluginsDirectory | the directory that the scanner should monitor for plugins |
|---|
Tells the Scanner to forget about a file it has loaded so that it will reload it next time it scans.
| file | a file that may have already been scanned. |
|---|
Retrieve all the DeploymentUnits currently stored.
DeploymentUnits.
Given a file, finds the deployment unit for it if one has already been scanned.
| file | a jar file. |
|---|
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.
| unit | the deployment unit to remove |
|---|
| PluginException |
|---|
Clears the list of scanned deployment units.
Scans for all files and directories that have been added or modified since the last call to scan. This will ignore all files or directories starting with the '.' character.
DeploymentUnits that describe newly added files or directories.