Class AbstractBambooModuleDescriptor<T>

    • Constructor Detail

      • AbstractBambooModuleDescriptor

        public AbstractBambooModuleDescriptor​(com.atlassian.plugin.module.ModuleFactory moduleFactory)
      • AbstractBambooModuleDescriptor

        @Deprecated
        public AbstractBambooModuleDescriptor()
        Deprecated.
        since 5.4 use the constructor which requires a ModuleFactory
        Needed for AbstractBambooModuleDescriptors that require a default constructor.
    • Method Detail

      • isMutable

        protected boolean isMutable()
        Whether modules of this descriptor are supposed to be mutated by external components. By default this returns true, which means a fresh module instance will be created each time getModule() is called.

        Subclasses that are safe to cache a singleton instance of module throughout the life span of this descriptor can override this method and return false.

        Returns:
        true if modules of this descriptor are mutable
      • getModule

        @Nullable
        public T getModule()
        Specified by:
        getModule in interface com.atlassian.plugin.ModuleDescriptor<T>
        Specified by:
        getModule in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
      • disabled

        public void disabled()
        Specified by:
        disabled in interface com.atlassian.plugin.StateAware
        Overrides:
        disabled in class com.atlassian.plugin.descriptors.AbstractModuleDescriptor<T>
      • instantiateClass

        protected <Z> Z instantiateClass​(Class<Z> clazz)
      • getFreeMarkerResourceLocation

        @Nullable
        protected @Nullable String getFreeMarkerResourceLocation​(@NotNull
                                                                 @NotNull String resourceName)
      • getVelocityResourceLocation

        @Nullable
        protected @Nullable String getVelocityResourceLocation​(@NotNull
                                                               @NotNull String resourceName)
      • getElementAsString

        @Nullable
        protected @Nullable String getElementAsString​(org.dom4j.Element element)