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 of AgentPluginResolver.
- Since:
- v3.3
|
Constructor Summary |
DefaultAgentPluginResolver(com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAgentPluginResolver
public DefaultAgentPluginResolver(com.atlassian.plugin.PluginAccessor pluginAccessor,
com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager)
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 return true.
- Specified by:
getAgentPlugins in interface AgentPluginResolver
- 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 interface AgentPluginResolver
- Parameters:
plugin - plugin to checkfilter - agent filter to match
- Returns:
true, if the plugin matches the filter.
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.