com.atlassian.plugin.predicate
Class EnabledModulePredicate<T>

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

public class EnabledModulePredicate<T>
extends java.lang.Object
implements ModuleDescriptorPredicate<T>

A ModuleDescriptorPredicate that matches enabled modules.


Constructor Summary
EnabledModulePredicate(PluginAccessor pluginAccessor)
           
 
Method Summary
 boolean matches(ModuleDescriptor<? extends T> 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<? extends T> 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<T>
Parameters:
moduleDescriptor - the ModuleDescriptor to test against.
Returns:
true if the module matches the predicate, false otherwise.


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.