Class UnloadableModuleDescriptor

java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
com.atlassian.plugin.descriptors.UnloadableModuleDescriptor
All Implemented Interfaces:
ModuleDescriptor<Void>, Resourced, ScopeAware, StateAware

public final class UnloadableModuleDescriptor extends AbstractModuleDescriptor<T>
Instances of this class represent a module which could not be loaded, not a module which can be unloaded.
  • Constructor Details

    • UnloadableModuleDescriptor

      public UnloadableModuleDescriptor()
  • Method Details

    • loadClass

      protected void loadClass(Plugin plugin, String clazz)
      Description copied from class: AbstractModuleDescriptor
      Loads the module class that this descriptor provides, and will not necessarily be the implementation class. Override this for module descriptors whose type cannot be determined via generics.
      Overrides:
      loadClass in class AbstractModuleDescriptor<Void>
      clazz - The module class name to load
    • getErrorText

      public final String getErrorText()
    • setErrorText

      public final void setErrorText(String errorText)
    • getModule

      public final Void getModule()
      Specified by:
      getModule in interface ModuleDescriptor<T>
      Specified by:
      getModule in class AbstractModuleDescriptor<T>
    • isEnabledByDefault

      public final boolean isEnabledByDefault()
      Specified by:
      isEnabledByDefault in interface ModuleDescriptor<T>
      Overrides:
      isEnabledByDefault in class AbstractModuleDescriptor<T>
    • setKey

      public final void setKey(String key)
      Sets the key of the ModuleDescriptor This is theoretically bad, as the superclass and the interface doesn't define this method, but it's required to construct an module descriptor when we don't have the XML Element.
      Parameters:
      key - the key of the ModuleDescriptor
    • setName

      public final void setName(String name)
      Sets the name of the ModuleDescriptor This is theoretically bad, as the superclass and the interface doesn't define this method, but it's required to construct an module descriptor when we don't have the XML Element.
      Parameters:
      name - the name of the ModuleDescriptor