com.atlassian.plugin.predicate
Class EnabledPluginPredicate

java.lang.Object
  extended by com.atlassian.plugin.predicate.EnabledPluginPredicate
All Implemented Interfaces:
PluginPredicate

public class EnabledPluginPredicate
extends java.lang.Object
implements PluginPredicate

A PluginPredicate that matches enabled plugins.


Constructor Summary
EnabledPluginPredicate(PluginAccessor pluginAccessor)
           
 
Method Summary
 boolean matches(Plugin plugin)
          Will match a plugin according to implementation rules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnabledPluginPredicate

public EnabledPluginPredicate(PluginAccessor pluginAccessor)
Throws:
java.lang.IllegalArgumentException - if PluginAccessor is null
Method Detail

matches

public boolean matches(Plugin plugin)
Description copied from interface: PluginPredicate

Will match a plugin according to implementation rules.

This method must not change the state of the plugin.

Specified by:
matches in interface PluginPredicate
Parameters:
plugin - the plugin to test against.
Returns:
true if the plugin matches the predicate, false otherwise.


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.