public class FileInstaller extends java.lang.Object implements IPluginInstaller
PluginFile holder class.| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
FileInstaller() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(java.lang.String source,
java.lang.String destination)
Registers a file into this installer.
|
void |
addFolder(java.lang.String source,
java.lang.String destination)
Registers a folder into this installer.
|
boolean |
equals(java.lang.Object obj) |
java.util.Set<PluginFile> |
getDirectories()
Gets the registered directories inside this installer.
|
java.util.Set<PluginFile> |
getFiles()
Gets the registered files inside this installer.
|
int |
hashCode() |
void |
install(AbstractPlugin plugin)
Triggered whenever the plugin is being installed.
|
void |
uninstall(AbstractPlugin plugin)
Triggered whenever the plugin is being uninstalled.
|
public void addFile(java.lang.String source,
java.lang.String destination)
source - where installer should look for the original filedestination - where installer shall put the filepublic void addFolder(java.lang.String source,
java.lang.String destination)
source - where installer should look for the original folderdestination - where installer shall put the folderpublic java.util.Set<PluginFile> getFiles()
public java.util.Set<PluginFile> getDirectories()
public void install(AbstractPlugin plugin) throws PluginException
IPluginInstallerinstall in interface IPluginInstallerplugin - the pluginPluginExceptionpublic void uninstall(AbstractPlugin plugin) throws PluginException
IPluginInstalleruninstall in interface IPluginInstallerplugin - the pluginPluginExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object