org.scijava
Class AbstractGateway
java.lang.Object
org.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
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
AbstractGateway
public AbstractGateway()
AbstractGateway
public AbstractGateway(String appName,
Context context)
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.