cz.vity.freerapid.plugimpl
Class StandardPluginContextImpl

java.lang.Object
  extended by cz.vity.freerapid.plugimpl.StandardPluginContextImpl
All Implemented Interfaces:
PluginContext

public class StandardPluginContextImpl
extends Object
implements PluginContext

Author:
Ladislav Vitasek

Method Summary
static PluginContext create(DialogSupport dialogSupport, ConfigurationStorageSupport storageSupport, MaintainQueueSupport queueSupport)
          Factory method for creating new Plugin context
 ConfigurationStorageSupport getConfigurationStorageSupport()
          Returns instance of ConfigurationStorageSupport for getting access to local storage
 DialogSupport getDialogSupport()
          Returns instance of DialogSupport for getting access to UI
 MaintainQueueSupport getQueueSupport()
          Returns instance of maintain support
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConfigurationStorageSupport

public ConfigurationStorageSupport getConfigurationStorageSupport()
Returns instance of ConfigurationStorageSupport for getting access to local storage

Specified by:
getConfigurationStorageSupport in interface PluginContext
Returns:
instance of ConfigurationStorageSupport

getDialogSupport

public DialogSupport getDialogSupport()
Returns instance of DialogSupport for getting access to UI

Specified by:
getDialogSupport in interface PluginContext
Returns:
instance of DialogSupport

create

public static PluginContext create(DialogSupport dialogSupport,
                                   ConfigurationStorageSupport storageSupport,
                                   MaintainQueueSupport queueSupport)
Factory method for creating new Plugin context

Parameters:
dialogSupport - instance of dialog support
storageSupport - instance of local confiration storage support
Returns:
new instance of PluginContext

getQueueSupport

public MaintainQueueSupport getQueueSupport()
Description copied from interface: PluginContext
Returns instance of maintain support

Specified by:
getQueueSupport in interface PluginContext
Returns:
from a place where you can maintain queue