Class JarSearcherBase
- java.lang.Object
-
- jetbrains.buildServer.plugins.files.JarSearcherBase
-
- All Implemented Interfaces:
PluginFileSystemLookup
- Direct Known Subclasses:
AgentPluginsFilesLookup
,ServerPluginsFilesLookup
public abstract class JarSearcherBase extends Object implements PluginFileSystemLookup
- Author:
- Eugene Petrenko Created: 18.02.2009 18:00:51
-
-
Field Summary
Fields Modifier and Type Field Description static String
TEAMCITY_PLUGIN_XML
-
Constructor Summary
Constructors Constructor Description JarSearcherBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Collection<File>
getPluginPaths()
protected boolean
isPluginAccepted(PluginInfo info)
abstract PluginInfo
loadPluginInfo(File pluginDir)
Loads plugin info.protected void
loadPluginsFrom(File _path, PluginInfosBuilder callback)
void
loadPluginsFrom(PluginInfosBuilder callback)
Load all plugins from all default locations
-
-
-
Field Detail
-
TEAMCITY_PLUGIN_XML
public static final String TEAMCITY_PLUGIN_XML
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPluginPaths
@NotNull public abstract Collection<File> getPluginPaths()
-
loadPluginsFrom
public void loadPluginsFrom(@NotNull PluginInfosBuilder callback)
Description copied from interface:PluginFileSystemLookup
Load all plugins from all default locations- Specified by:
loadPluginsFrom
in interfacePluginFileSystemLookup
- Parameters:
callback
- will get foundPluginInfo
-
loadPluginsFrom
protected void loadPluginsFrom(@NotNull File _path, @NotNull PluginInfosBuilder callback)
-
isPluginAccepted
protected boolean isPluginAccepted(@NotNull PluginInfo info)
-
loadPluginInfo
@NotNull public abstract PluginInfo loadPluginInfo(@NotNull File pluginDir)
Loads plugin info. Will return null if not loaded- Specified by:
loadPluginInfo
in interfacePluginFileSystemLookup
- Parameters:
pluginDir
- Directory to load the plugin from- Returns:
- Found
PluginInfo
(IncorrectPluginInfo
if there is no plugin in the directory or there was an error during parsing)
-
-