public class

PluginInfosImpl

extends Object
implements PluginInfos
java.lang.Object
   ↳ com.atlassian.jira.startup.PluginInfosImpl

Class Overview

Implementation for PluginInfos.

Summary

Public Constructors
PluginInfosImpl(String name, Iterable<PluginInfo> pluginInfos)
Public Methods
Iterator<PluginInfo> iterator()
String name()
Returns the name of this PluginInfos (e.g.
String prettyPrint()
Returns a String describing this PluginInfos in human-readable form.
int size()
Returns the size of this PluginInfos.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.startup.PluginInfos
From interface java.lang.Iterable

Public Constructors

public PluginInfosImpl (String name, Iterable<PluginInfo> pluginInfos)

Public Methods

public Iterator<PluginInfo> iterator ()

public String name ()

Returns the name of this PluginInfos (e.g. "User Plugins", "System Plugins").

Returns
  • a String containing the name of this PluginInfos

public String prettyPrint ()

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.
 

Returns
  • a String

public int size ()

Returns the size of this PluginInfos.

Returns
  • the number of PluginInfo instances in this instance

public String toString ()