com.togethersoft.testing.shared
Interface IPlugin


public interface IPlugin

Represents a plugin in testing framework.


Method Summary
 IExtension[]getExtensions()
          returns extensions declared in plugin
 StringgetFormattedMessage(String key, Object[] params)
          Returns message registered for a given key.
 StringgetHomeDirectory()
          Returns directory where plugin is placed
 StringgetMessage(String key)
          Returns message registered for a given key.
 StringgetName()
          returns name of plugin
 URLgetResource(String resource)
          returns a url to resource put into plugin jar file
 booleanisActive()
          returns whether this plugin was started.

Method Detail

getExtensions

public IExtension[] getExtensions()
returns extensions declared in plugin

getFormattedMessage

public String getFormattedMessage(String key, Object[] params)
Returns message registered for a given key. Messages are supposed to be defined
in "messages.properties" file, which is expected to be located in plugin home folder.

getHomeDirectory

public String getHomeDirectory()
Returns directory where plugin is placed

getMessage

public String getMessage(String key)
Returns message registered for a given key. Messages are supposed to be defined
in "messages.properties" file, which is expected to be located in plugin home folder.

getName

public String getName()
returns name of plugin

getResource

public URL getResource(String resource)
returns a url to resource put into plugin jar file

isActive

public boolean isActive()
returns whether this plugin was started.