Package com.atlassian.bamboo.plugin
Class DefaultAgentPluginResolver
- java.lang.Object
-
- com.atlassian.bamboo.plugin.DefaultAgentPluginResolver
-
- All Implemented Interfaces:
AgentPluginResolver
public class DefaultAgentPluginResolver extends Object implements AgentPluginResolver
Default implementation ofAgentPluginResolver
.- Since:
- v3.3
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.plugin.AgentPluginResolver
AgentPluginResolver.AgentPluginFilter
-
-
Constructor Summary
Constructors Constructor Description DefaultAgentPluginResolver(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<com.atlassian.plugin.Plugin>
getAgentPlugins(AgentPluginResolver.AgentPluginFilter filter)
Get agent plugins (i.e.boolean
matches(com.atlassian.plugin.Plugin plugin, AgentPluginResolver.AgentPluginFilter filter)
Check whether plugin matches given filter.
-
-
-
Method Detail
-
getAgentPlugins
public Iterable<com.atlassian.plugin.Plugin> getAgentPlugins(AgentPluginResolver.AgentPluginFilter filter)
Description copied from interface:AgentPluginResolver
Get agent plugins (i.e. plugins supposed to run on remote agents) for given filter.
This method returns all currently installed plugins, for which
AgentPluginResolver.matches(com.atlassian.plugin.Plugin, com.atlassian.bamboo.plugin.AgentPluginResolver.AgentPluginFilter)
will returntrue
.- Specified by:
getAgentPlugins
in interfaceAgentPluginResolver
- Parameters:
filter
- agent plugin filter- Returns:
- list of matching plugins
-
matches
public boolean matches(com.atlassian.plugin.Plugin plugin, AgentPluginResolver.AgentPluginFilter filter)
Description copied from interface:AgentPluginResolver
Check whether plugin matches given filter. It must be supported by remote agents (i.e. have at least one module supported by remote agents) and match any additional criteria defined in the filter.- Specified by:
matches
in interfaceAgentPluginResolver
- Parameters:
plugin
- plugin to checkfilter
- agent filter to match- Returns:
true
, if the plugin matches the filter.
-
-