Package com.atlassian.plugin.descriptors
Class UnloadableModuleDescriptor
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
com.atlassian.plugin.descriptors.UnloadableModuleDescriptor
- All Implemented Interfaces:
ModuleDescriptor<Void>,Resourced,ScopeAware,StateAware
Instances of this class represent a module which could not be loaded, not a module
which can be unloaded.
-
Field Summary
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringfinal Voidfinal booleanprotected voidLoads the module class that this descriptor provides, and will not necessarily be the implementation class.final voidsetErrorText(String errorText) final voidSets 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.final voidSets 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.Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, destroy, disabled, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, init, isBroken, isEnabled, isSystemModule, satisfiesMinJavaVersion, setBroken, setPlugin, toString, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.plugin.ModuleDescriptor
getDisplayName
-
Constructor Details
-
UnloadableModuleDescriptor
public UnloadableModuleDescriptor()
-
-
Method Details
-
loadClass
Description copied from class:AbstractModuleDescriptorLoads 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:
loadClassin classAbstractModuleDescriptor<Void>clazz- The module class name to load
-
getErrorText
-
setErrorText
-
getModule
- Specified by:
getModulein interfaceModuleDescriptor<T>- Specified by:
getModulein classAbstractModuleDescriptor<T>
-
isEnabledByDefault
public final boolean isEnabledByDefault()- Specified by:
isEnabledByDefaultin interfaceModuleDescriptor<T>- Overrides:
isEnabledByDefaultin classAbstractModuleDescriptor<T>
-
setKey
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
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
-