com.atlassian.jira.startup
Class PluginInfosImpl

java.lang.Object
  extended by 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 Summary
PluginInfosImpl(String name, Iterable<PluginInfo> pluginInfos)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PluginInfosImpl

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

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


Copyright © 2002-2013 Atlassian. All Rights Reserved.