Class BaseServletModuleDescriptor<T>
java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
com.atlassian.plugin.servlet.descriptors.BaseServletModuleDescriptor<T>
- All Implemented Interfaces:
ModuleDescriptor<T>,Resourced,ScopeAware,StateAware
- Direct Known Subclasses:
ServletFilterModuleDescriptor,ServletModuleDescriptor
Acts as a base for other servlet type module descriptors to inherit. It adds parsing and retrieval of any paths
declared in the descriptor with <url-pattern> as well as <init-param>s.
- Since:
- 2.1.0
-
Field Summary
FieldsFields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
key, moduleClass, moduleClassName, moduleFactory, name, plugin, resources -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanAllows subclasses to override the default<async-supported/>setting for this descriptor.getPaths()voidbooleanprotected voidMethods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, destroy, disabled, enabled, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModule, getModuleClass, getModuleClassName, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceLocation, getScopeKey, hashCode, isBroken, isEnabled, isEnabledByDefault, isSystemModule, loadClass, satisfiesMinJavaVersion, setBroken, setPlugin, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.plugin.ModuleDescriptor
getDisplayName
-
Field Details
-
log
protected static final org.slf4j.Logger log
-
-
Constructor Details
-
BaseServletModuleDescriptor
- Parameters:
moduleCreator- a factory for creating this descriptor's module- Since:
- 2.5.0
-
-
Method Details
-
init
- Specified by:
initin interfaceModuleDescriptor<T>- Overrides:
initin classAbstractModuleDescriptor<T>
-
validate
- Overrides:
validatein classAbstractModuleDescriptor<T>
-
getPaths
-
getInitParams
-
isAsyncSupported
public boolean isAsyncSupported()- Since:
- 4.6.0
-
getDefaultAsyncSupported
protected boolean getDefaultAsyncSupported()Allows subclasses to override the default<async-supported/>setting for this descriptor. If a derived class does not override this method, the default will befalse.Note: This method is called by the constructor, so other properties, like
AbstractModuleDescriptor.getCompleteKey(), are not available when this runs.- Returns:
false- Since:
- 5.8.0
-