View Javadoc

1   package com.atlassian.plugin.descriptors;
2   
3   import com.atlassian.plugin.Plugin;
4   import com.atlassian.plugin.PluginParseException;
5   import org.dom4j.Element;
6   
7   /**
8    * Instances of this class represent a module which <i>could not be loaded</i>, not a module
9    * which <i>can be unloaded</i>.
10   */
11  public final class UnloadableModuleDescriptor extends AbstractNoOpModuleDescriptor<Void>
12  {
13      @Override
14      protected void loadClass(final Plugin plugin, final Element element) throws PluginParseException
15      {
16          // don't try to load the class -- we are possibly here because it doesn't exist
17      }
18  
19      @Override
20      protected void loadClass(Plugin plugin, String clazz) throws PluginParseException
21      {
22          // don't try to load the class -- we are possibly here because it doesn't exist
23      }
24  }