Class AgentPluginsFilesLookup
- java.lang.Object
-
- jetbrains.buildServer.plugins.files.JarSearcherBase
-
- jetbrains.buildServer.agent.plugins.files.AgentPluginsFilesLookup
-
- All Implemented Interfaces:
PluginFileSystemLookup
public class AgentPluginsFilesLookup extends JarSearcherBase
- Author:
- Eugene Petrenko Created: 10.02.2009 14:07:24
-
-
Field Summary
-
Fields inherited from class jetbrains.buildServer.plugins.files.JarSearcherBase
TEAMCITY_PLUGIN_XML
-
-
Constructor Summary
Constructors Constructor Description AgentPluginsFilesLookup(BuildAgentConfiguration config, AgentUnpackingPluginJarSearcher unpacker, AgentPluginXmlParser parser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<File>
getPluginPaths()
We assume each plugin is unpacked into a standalone folder.protected boolean
isPluginAccepted(PluginInfo info)
PluginInfo
loadPluginInfo(File pluginDir)
Loads plugin info.void
loadPluginsFrom(PluginInfosBuilder callback)
Load all plugins from all default locations-
Methods inherited from class jetbrains.buildServer.plugins.files.JarSearcherBase
loadPluginsFrom
-
-
-
-
Constructor Detail
-
AgentPluginsFilesLookup
public AgentPluginsFilesLookup(@NotNull BuildAgentConfiguration config, @NotNull AgentUnpackingPluginJarSearcher unpacker, @NotNull AgentPluginXmlParser parser)
-
-
Method Detail
-
getPluginPaths
@NotNull public Collection<File> getPluginPaths()
We assume each plugin is unpacked into a standalone folder. All plugin's folders are collected under some folders.- Specified by:
getPluginPaths
in classJarSearcherBase
- Returns:
- filders where plugin folders are located
-
loadPluginsFrom
public void loadPluginsFrom(@NotNull PluginInfosBuilder callback)
Description copied from interface:PluginFileSystemLookup
Load all plugins from all default locations- Specified by:
loadPluginsFrom
in interfacePluginFileSystemLookup
- Overrides:
loadPluginsFrom
in classJarSearcherBase
- Parameters:
callback
- will get foundPluginInfo
-
isPluginAccepted
protected boolean isPluginAccepted(@NotNull PluginInfo info)
- Overrides:
isPluginAccepted
in classJarSearcherBase
-
loadPluginInfo
@NotNull public PluginInfo loadPluginInfo(@NotNull File pluginDir)
Description copied from class:JarSearcherBase
Loads plugin info. Will return null if not loaded- Specified by:
loadPluginInfo
in interfacePluginFileSystemLookup
- Specified by:
loadPluginInfo
in classJarSearcherBase
- 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)
-
-