org.scijava
Class AbstractGateway

java.lang.Object
  extended by org.scijava.AbstractContextual
      extended by org.scijava.plugin.AbstractRichPlugin
          extended by org.scijava.AbstractGateway
All Implemented Interfaces:
Comparable<Prioritized>, Contextual, Gateway, HasPluginInfo, RichPlugin, SciJavaPlugin, Prioritized
Direct Known Subclasses:
SciJava

public abstract class AbstractGateway
extends AbstractRichPlugin
implements Gateway

Abstract superclass for Gateway implementations.

Author:
Mark Hiner, Curtis Rueden

Constructor Summary
AbstractGateway()
           
AbstractGateway(String appName, Context context)
           
 
Method Summary
 AppService app()
           
 AppEventService appEvent()
           
 CommandService command()
           
 ConsoleService console()
           
 DisplayService display()
           
 EventService event()
           
 EventHistory eventHistory()
           
<S extends Service>
S
get(Class<S> serviceClass)
          Returns an implementation of the requested Service, if it exists in the underlying Context.
 Service get(String serviceClassName)
          Returns an implementation of the Service with the given class name, if it exists in the underlying Context.
 App getApp()
           
 String getInfo(boolean mem)
           
 String getTitle()
           
 String getVersion()
           
 IconService icon()
           
 IOService io()
           
 LogService log()
           
 MenuService menu()
           
 ModuleService module()
           
 ObjectService object()
           
 OptionsService options()
           
 PlatformService platform()
           
 PluginService plugin()
           
 RecentFileService recentFile()
           
 ScriptService script()
           
 StatusService status()
           
 TextService text()
           
 ThreadService thread()
           
 ToolService tool()
           
 WidgetService widget()
           
 
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
compareTo, getInfo, getPriority, setInfo, setPriority, toString
 
Methods inherited from class org.scijava.AbstractContextual
context, getContext, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
 
Methods inherited from interface org.scijava.Prioritized
getPriority, setPriority
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
 

Constructor Detail

AbstractGateway

public AbstractGateway()

AbstractGateway

public AbstractGateway(String appName,
                       Context context)
Method Detail

get

public <S extends Service> S get(Class<S> serviceClass)
Description copied from interface: Gateway
Returns an implementation of the requested Service, if it exists in the underlying Context.

Specified by:
get in interface Gateway
Parameters:
serviceClass - the requested Service
Returns:
The singleton instance of the given class

get

public Service get(String serviceClassName)
Description copied from interface: Gateway
Returns an implementation of the Service with the given class name, if it exists in the underlying Context.

Specified by:
get in interface Gateway
Parameters:
serviceClassName - name of the requested Service
Returns:
The singleton instance of the requested Service

appEvent

public AppEventService appEvent()
Specified by:
appEvent in interface Gateway

app

public AppService app()
Specified by:
app in interface Gateway

command

public CommandService command()
Specified by:
command in interface Gateway

console

public ConsoleService console()
Specified by:
console in interface Gateway

display

public DisplayService display()
Specified by:
display in interface Gateway

eventHistory

public EventHistory eventHistory()
Specified by:
eventHistory in interface Gateway

event

public EventService event()
Specified by:
event in interface Gateway

icon

public IconService icon()
Specified by:
icon in interface Gateway

io

public IOService io()
Specified by:
io in interface Gateway

log

public LogService log()
Specified by:
log in interface Gateway

menu

public MenuService menu()
Specified by:
menu in interface Gateway

module

public ModuleService module()
Specified by:
module in interface Gateway

object

public ObjectService object()
Specified by:
object in interface Gateway

options

public OptionsService options()
Specified by:
options in interface Gateway

platform

public PlatformService platform()
Specified by:
platform in interface Gateway

plugin

public PluginService plugin()
Specified by:
plugin in interface Gateway

recentFile

public RecentFileService recentFile()
Specified by:
recentFile in interface Gateway

script

public ScriptService script()
Specified by:
script in interface Gateway

status

public StatusService status()
Specified by:
status in interface Gateway

text

public TextService text()
Specified by:
text in interface Gateway

thread

public ThreadService thread()
Specified by:
thread in interface Gateway

tool

public ToolService tool()
Specified by:
tool in interface Gateway

widget

public WidgetService widget()
Specified by:
widget in interface Gateway

getApp

public App getApp()
Specified by:
getApp in interface Gateway
See Also:
AppService

getTitle

public String getTitle()
Specified by:
getTitle in interface Gateway
See Also:
App.getTitle()

getVersion

public String getVersion()
Specified by:
getVersion in interface Gateway
See Also:
App.getVersion()

getInfo

public String getInfo(boolean mem)
Specified by:
getInfo in interface Gateway
See Also:
App.getInfo(boolean)


Copyright © 2009–2014 SciJava. All rights reserved.