|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.loaders.RosterFileScanner
public class RosterFileScanner
A Scanner which polls a file containing a list of file names to define its content.
| Constructor Summary | |
|---|---|
RosterFileScanner(File rosterFile)
Create a roster file scanner which loads the given roster file to locate plugins. |
|
| Method Summary | |
|---|---|
Collection<DeploymentUnit> |
getDeploymentUnits()
Gets all deployment units currently being tracked by the scanner. |
static String |
getListSuffix()
The suffix for a roster file containing a simple plugin list. |
static boolean |
isKnownRosterFileFormat(File rosterFile)
Check whether a proposed roster file is in a known format. |
void |
remove(DeploymentUnit deploymentUnit)
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. |
void |
reset()
Reset the scanner. |
Collection<DeploymentUnit> |
scan()
Scan for new deployment units. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RosterFileScanner(File rosterFile)
getListSuffix(): a list of file paths, one per line
If the format is not recognized, an IllegalArgumentException is thrown. This can be checked before construction
using isKnownRosterFileFormat(File).
rosterFile - the file to load the plugin roster from.
IllegalArgumentException - if the suffix of rosterFile is not a supported file format| Method Detail |
|---|
public Collection<DeploymentUnit> scan()
Scanner
scan in interface Scannerpublic Collection<DeploymentUnit> getDeploymentUnits()
Scanner
getDeploymentUnits in interface Scannerpublic void reset()
Scanner
reset in interface Scanner
public void remove(DeploymentUnit deploymentUnit)
throws PluginException
Scanner
remove in interface ScannerdeploymentUnit - the deployment unit to remove
PluginException - if the unit has not been properly removed: i.e. a restart would mean the unit would
be reloaded.public static String getListSuffix()
public static boolean isKnownRosterFileFormat(File rosterFile)
rosterFile - the roster file to check.
RosterFileScanner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||