com.atlassian.bamboo.plugin
Class DefaultAgentPluginResolver

java.lang.Object
  extended by com.atlassian.bamboo.plugin.DefaultAgentPluginResolver
All Implemented Interfaces:
AgentPluginResolver

public class DefaultAgentPluginResolver
extends java.lang.Object
implements 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
DefaultAgentPluginResolver(com.atlassian.plugin.PluginAccessor pluginAccessor, com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager)
           
 
Method Summary
 java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAgentPluginResolver

public DefaultAgentPluginResolver(com.atlassian.plugin.PluginAccessor pluginAccessor,
                                  com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager)
Method Detail

getAgentPlugins

public java.lang.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 check
filter - agent filter to match
Returns:
true, if the plugin matches the filter.


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.