Class PluginInfosImpl

java.lang.Object
com.atlassian.jira.startup.PluginInfosImpl
All Implemented Interfaces:
PluginInfos, Iterable<PluginInfo>

public class PluginInfosImpl extends Object implements PluginInfos
Implementation for PluginInfos.
Since:
v5.0
  • Constructor Details

  • Method Details

    • name

      public String name()
      Description copied from interface: PluginInfos
      Returns the name of this PluginInfos (e.g. "User Plugins", "System Plugins").
      Specified by:
      name in interface PluginInfos
      Returns:
      a String containing the name of this PluginInfos
    • iterator

      public Iterator<PluginInfo> iterator()
      Specified by:
      iterator in interface Iterable<PluginInfo>
    • size

      public int size()
      Description copied from interface: PluginInfos
      Returns the size of this PluginInfos.
      Specified by:
      size in interface PluginInfos
      Returns:
      the number of PluginInfo instances in this instance
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • prettyPrint

      public String prettyPrint()
      Description copied from interface: PluginInfos
      Returns a String describing this PluginInfos in human-readable form. The text will include a header containing this PluginInfo's name, followed by a list of plugins. Sample output:

       ___ User Plugins ____________________________
      
           Number                                        : 1
      
           JIRA Charting Plugin                          : com.atlassian.jira.ext.charting
                Version                                       : 1.8
                Status                                        : enabled
                Vendor                                        : Atlassian
                Description                                   : JIRA Plugin for graphical charts and graphs.
       
      Specified by:
      prettyPrint in interface PluginInfos
      Returns:
      a String