View Javadoc

1   package com.atlassian.plugin.predicate;
2   
3   import com.atlassian.plugin.ModuleDescriptor;
4   
5   /**
6    * Interface used to match plugin modules according to implementation specific rules.
7    *
8    * @since 0.17
9    * @deprecated since 2.2 unused
10   */
11  @Deprecated
12  public interface ModulePredicate
13  {
14      /**
15      * <p>Will match a plugin module according to implementation rules.<p>
16      * <p>This method must not change the state of the module nor its plugin .</p>
17      *
18      * @param moduleDescriptor the {@link ModuleDescriptor} to test against.
19      * @return <code>true</code> if the module matches the predicate, <code>false</code> otherwise.
20      */
21      boolean matches(final ModuleDescriptor moduleDescriptor);
22  }