com.atlassian.plugin.predicate
Class EnabledModulePredicate

java.lang.Object
  extended by com.atlassian.plugin.predicate.EnabledModulePredicate
All Implemented Interfaces:
ModuleDescriptorPredicate

public class EnabledModulePredicate
extends java.lang.Object
implements ModuleDescriptorPredicate

A ModuleDescriptorPredicate that matches enabled modules.


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

Constructor Detail

EnabledModulePredicate

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

matches

public boolean matches(ModuleDescriptor moduleDescriptor)
Description copied from interface: ModuleDescriptorPredicate

Will match a plugin module according to implementation rules.

This method must not change the state of the module nor its plugin .

Specified by:
matches in interface ModuleDescriptorPredicate
Parameters:
moduleDescriptor - the ModuleDescriptor to test against.
Returns:
true if the module matches the predicate, false otherwise.


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.