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 StringTEAMCITY_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 booleanisPluginAccepted(PluginInfo info)abstract PluginInfoloadPluginInfo(File pluginDir)Loads plugin info.protected voidloadPluginsFrom(File _path, PluginInfosBuilder callback)voidloadPluginsFrom(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:PluginFileSystemLookupLoad all plugins from all default locations- Specified by:
loadPluginsFromin 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:
loadPluginInfoin interfacePluginFileSystemLookup- 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)
-
-