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 booleanisPluginAccepted(PluginInfo info)PluginInfoloadPluginInfo(File pluginDir)Loads plugin info.voidloadPluginsFrom(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:
getPluginPathsin classJarSearcherBase- Returns:
- filders where plugin folders are located
-
loadPluginsFrom
public void loadPluginsFrom(@NotNull PluginInfosBuilder callback)Description copied from interface:PluginFileSystemLookupLoad all plugins from all default locations- Specified by:
loadPluginsFromin interfacePluginFileSystemLookup- Overrides:
loadPluginsFromin classJarSearcherBase- Parameters:
callback- will get foundPluginInfo
-
isPluginAccepted
protected boolean isPluginAccepted(@NotNull PluginInfo info)- Overrides:
isPluginAcceptedin classJarSearcherBase
-
loadPluginInfo
@NotNull public PluginInfo loadPluginInfo(@NotNull File pluginDir)
Description copied from class:JarSearcherBaseLoads plugin info. Will return null if not loaded- Specified by:
loadPluginInfoin interfacePluginFileSystemLookup- Specified by:
loadPluginInfoin classJarSearcherBase- Parameters:
pluginDir- Directory to load the plugin from- Returns:
- Found
PluginInfo(IncorrectPluginInfoif there is no plugin in the directory or there was an error during parsing)
-
-