Class DecoratorModuleDescriptor

java.lang.Object
com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor
com.atlassian.bamboo.plugin.descriptor.DecoratorModuleDescriptor
All Implemented Interfaces:
com.atlassian.plugin.ModuleDescriptor, com.atlassian.plugin.Resourced, com.atlassian.plugin.ScopeAware, com.atlassian.plugin.StateAware

public class DecoratorModuleDescriptor extends AbstractBambooModuleDescriptor
Module descriptor for Sitemesh decorators. This module descriptor has a page, which is the name of a velocity template resource, and a pattern, which is a regular expression matched against the request to see if this decorator should be applied. If more than regular expression matching is required, use a decorator mapper module instead.
  • Constructor Details

    • DecoratorModuleDescriptor

      public DecoratorModuleDescriptor(com.atlassian.plugin.module.ModuleFactory moduleFactory)
  • Method Details

    • init

      public void init(com.atlassian.plugin.Plugin plugin, com.atlassian.plugin.module.Element element) throws com.atlassian.plugin.PluginParseException
      Specified by:
      init in interface com.atlassian.plugin.ModuleDescriptor
      Overrides:
      init in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor
      Throws:
      com.atlassian.plugin.PluginParseException
    • getModule

      @Nullable public @Nullable Object getModule()
      Specified by:
      getModule in interface com.atlassian.plugin.ModuleDescriptor
      Overrides:
      getModule in class AbstractBambooModuleDescriptor
    • getPattern

      @Nullable public @Nullable Pattern getPattern()
    • getPage

      @NotNull public @NotNull String getPage()