com.atlassian.plugin.servlet.descriptors
Class ServletModuleDescriptor

java.lang.Object
  extended by com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
      extended by com.atlassian.plugin.servlet.descriptors.BaseServletModuleDescriptor<javax.servlet.http.HttpServlet>
          extended by com.atlassian.plugin.servlet.descriptors.ServletModuleDescriptor
All Implemented Interfaces:
ModuleDescriptor<javax.servlet.http.HttpServlet>, Resourced, StateAware

public class ServletModuleDescriptor
extends BaseServletModuleDescriptor<javax.servlet.http.HttpServlet>
implements StateAware

A module descriptor that allows plugin developers to define servlets. Developers can define what urls the servlet should be serve by defining one or more <url-pattern> elements.


Field Summary
 
Fields inherited from class com.atlassian.plugin.servlet.descriptors.BaseServletModuleDescriptor
log
 
Fields inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
moduleClass, moduleClassName, moduleFactory, plugin, resources, singleton
 
Constructor Summary
ServletModuleDescriptor(ModuleFactory moduleFactory, ServletModuleManager servletModuleManager)
          Creates a descriptor that uses a module factory to create instances
 
Method Summary
 void disabled()
          Disables the module descriptor.
 void enabled()
          Enables the descriptor by loading the module class.
 javax.servlet.http.HttpServlet getModule()
          The particular module object created by this plugin.
 javax.servlet.http.HttpServlet getServlet()
          Deprecated. Since 2.0.0, use getModule()
 
Methods inherited from class com.atlassian.plugin.servlet.descriptors.BaseServletModuleDescriptor
getInitParams, getPaths, init, provideValidationRules
 
Methods inherited from class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
assertModuleClassImplements, checkPermissions, destroy, equals, getCompleteKey, getDescription, getDescriptionKey, getI18nNameKey, getKey, getMinJavaVersion, getModuleClass, getName, getParams, getPlugin, getPluginKey, getRequiredPermissions, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hashCode, isEnabledByDefault, isSingleton, isSingletonByDefault, isSystemModule, loadClass, loadClass, satisfiesMinJavaVersion, setPlugin, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServletModuleDescriptor

public ServletModuleDescriptor(ModuleFactory moduleFactory,
                               ServletModuleManager servletModuleManager)
Creates a descriptor that uses a module factory to create instances

Parameters:
moduleFactory -
Since:
2.5.0
Method Detail

enabled

public void enabled()
Description copied from class: AbstractModuleDescriptor
Enables the descriptor by loading the module class. Classes overriding this method MUST call super.enabled() before their own enabling code.

Specified by:
enabled in interface StateAware
Overrides:
enabled in class AbstractModuleDescriptor<javax.servlet.http.HttpServlet>

disabled

public void disabled()
Description copied from class: AbstractModuleDescriptor
Disables the module descriptor. Classes overriding this method MUST call super.disabled() after their own disabling code.

Specified by:
disabled in interface StateAware
Overrides:
disabled in class AbstractModuleDescriptor<javax.servlet.http.HttpServlet>

getModule

public javax.servlet.http.HttpServlet getModule()
Description copied from interface: ModuleDescriptor
The particular module object created by this plugin.

Specified by:
getModule in interface ModuleDescriptor<javax.servlet.http.HttpServlet>
Specified by:
getModule in class AbstractModuleDescriptor<javax.servlet.http.HttpServlet>
Returns:
The module object created by this plugin.
See Also:
ModuleDescriptor.getModuleClass()

getServlet

@Deprecated
public javax.servlet.http.HttpServlet getServlet()
Deprecated. Since 2.0.0, use getModule()



Copyright © 2012 Atlassian. All Rights Reserved.