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) |
create, filterInstances, getInstance, getInstances, initialize
getPlugins, getPluginService
dispose, getContext, registerEventHandlers, setContext, toString
compareTo, getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getInstance, getInstances
create, getPlugins, getPluginService
initialize, registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
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–2015 SciJava. All rights reserved.