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
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
app
public AppService app()
- Specified by:
app in interface Gateway
eventHistory
public EventHistory eventHistory()
- Specified by:
eventHistory in interface Gateway
event
public EventService event()
- Specified by:
event in interface Gateway
log
public LogService log()
- Specified by:
log in interface Gateway
object
public ObjectService object()
- Specified by:
object in interface Gateway
plugin
public PluginService plugin()
- Specified by:
plugin in interface Gateway
status
public StatusService status()
- Specified by:
status in interface Gateway
thread
public ThreadService thread()
- Specified by:
thread 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.