Package com.atlassian.bamboo.plugin
Class DefaultAgentPluginResolver
java.lang.Object
com.atlassian.bamboo.plugin.DefaultAgentPluginResolver
- All Implemented Interfaces:
AgentPluginResolver
Default implementation of
AgentPluginResolver
.- Since:
- v3.3
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.plugin.AgentPluginResolver
AgentPluginResolver.AgentPluginFilter
-
Constructor Summary
ConstructorDescriptionDefaultAgentPluginResolver
(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager) -
Method Summary
Modifier and TypeMethodDescriptionIterable<com.atlassian.plugin.Plugin>
Get agent plugins (i.e.boolean
matches
(com.atlassian.plugin.Plugin plugin, AgentPluginResolver.AgentPluginFilter filter) Check whether plugin matches given filter.
-
Constructor Details
-
DefaultAgentPluginResolver
public DefaultAgentPluginResolver(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager)
-
-
Method Details
-
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.
-