public class DefaultAppService extends AbstractSingletonService<App> implements AppService
Constructor and Description |
---|
DefaultAppService() |
Modifier and Type | Method and Description |
---|---|
App |
getApp()
Gets the foremost application (the one with the highest priority).
|
App |
getApp(String name)
Gets an application by name.
|
Map<String,App> |
getApps()
Gets the table of associated applications, keyed by name.
|
Class<App> |
getPluginType()
Gets the type of plugins managed by this service.
|
protected void |
onEvent(AppAboutEvent event) |
protected void |
onEvent(AppPreferencesEvent event) |
protected void |
onEvent(AppQuitEvent event) |
getInstance, getInstances, objectService
pluginService
dispose, getContext, setContext, toString
getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
create, filterInstances, getInstance, getInstances, initialize, objectService
getPlugins, getPluginService, pluginService
registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
public App getApp()
AppService
getApp
in interface AppService
public App getApp(String name)
AppService
getApp
in interface AppService
public Map<String,App> getApps()
AppService
getApps
in interface AppService
Plugin.name()
public Class<App> getPluginType()
PTService
getPluginType
in interface PTService<App>
protected void onEvent(AppAboutEvent event)
protected void onEvent(AppPreferencesEvent event)
protected void onEvent(AppQuitEvent event)
Copyright © 2009–2016 SciJava. All rights reserved.