public class DefaultAgentPluginResolver extends Object implements AgentPluginResolver
AgentPluginResolver
.AgentPluginResolver.AgentPluginFilter
Constructor and Description |
---|
DefaultAgentPluginResolver(com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager) |
Modifier and Type | Method and 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.
|
public DefaultAgentPluginResolver(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager)
public Iterable<com.atlassian.plugin.Plugin> getAgentPlugins(AgentPluginResolver.AgentPluginFilter filter)
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 return true
.
getAgentPlugins
in interface AgentPluginResolver
filter
- agent plugin filterpublic boolean matches(com.atlassian.plugin.Plugin plugin, AgentPluginResolver.AgentPluginFilter filter)
AgentPluginResolver
matches
in interface AgentPluginResolver
plugin
- plugin to checkfilter
- agent filter to matchtrue
, if the plugin matches the filter.Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.