public interface ServerPluginProvider
| Modifier and Type | Interface and Description |
|---|---|
static class |
ServerPluginProvider.PluginDescription
Descriptor of the Plugin that ServerPluginProvider has to load.
|
| Modifier and Type | Method and Description |
|---|---|
ServerPlugin |
get(java.io.File srcFile,
org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot,
ServerPluginProvider.PluginDescription pluginDescriptor)
Loads an external file or directory into a Server plugin.
|
java.lang.String |
getPluginName(java.io.File srcFile)
Returns the plugin name of an external file or directory
Should be called only if
handles(srcFile)
returns true and thus srcFile is a supported plugin format. |
java.lang.String |
getProviderPluginName()
Returns the plugin name of this provider.
|
boolean |
handles(java.io.File srcFile)
Declares the availability to manage an external file or directory
|
boolean handles(java.io.File srcFile)
srcFile - the external file or directoryjava.lang.String getPluginName(java.io.File srcFile)
handles(srcFile)
returns true and thus srcFile is a supported plugin format.
An IllegalArgumentException is thrown otherwise as srcFile
is not a valid file format for extracting its plugin name.srcFile - external file or directoryServerPlugin get(java.io.File srcFile, org.eclipse.jgit.internal.storage.file.FileSnapshot snapshot, ServerPluginProvider.PluginDescription pluginDescriptor) throws InvalidPluginException
handles(srcFile)
returns true and thus srcFile is a supported plugin format.
An IllegalArgumentException is thrown otherwise as srcFile
is not a valid file format for extracting its plugin name.srcFile - external file or directorysnapshot - snapshot of the external filepluginDescriptor - descriptor of the ServerPlugin to loadInvalidPluginException - if plugin is supposed to be handled
but cannot be loaded for any other reasonjava.lang.String getProviderPluginName()