org.scijava.app
Class DefaultAppService

java.lang.Object
  extended by org.scijava.AbstractContextual
      extended by org.scijava.plugin.AbstractRichPlugin
          extended by org.scijava.service.AbstractService
              extended by org.scijava.plugin.AbstractPTService<PT>
                  extended by org.scijava.plugin.AbstractSingletonService<App>
                      extended by org.scijava.app.DefaultAppService
All Implemented Interfaces:
Comparable<Prioritized>, AppService, Contextual, Disposable, HasPluginInfo, PTService<App>, RichPlugin, SciJavaPlugin, SingletonService<App>, Prioritized, Service

public class DefaultAppService
extends AbstractSingletonService<App>
implements AppService

Default service for application-level functionality.

Author:
Curtis Rueden

Constructor Summary
DefaultAppService()
           
 
Method Summary
 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)
           
 
Methods inherited from class org.scijava.plugin.AbstractSingletonService
filterInstances, getInstance, getInstances, initialize
 
Methods inherited from class org.scijava.plugin.AbstractPTService
getPlugins, getPluginService
 
Methods inherited from class org.scijava.service.AbstractService
dispose, getContext, registerEventHandlers, setContext, toString
 
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
compareTo, getInfo, getPriority, setInfo, setPriority
 
Methods inherited from class org.scijava.AbstractContextual
context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.scijava.plugin.SingletonService
getInstance, getInstances
 
Methods inherited from interface org.scijava.plugin.PTService
getPlugins, getPluginService
 
Methods inherited from interface org.scijava.service.Service
initialize, registerEventHandlers
 
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
 
Methods inherited from interface org.scijava.Disposable
dispose
 

Constructor Detail

DefaultAppService

public DefaultAppService()
Method Detail

getApp

public App getApp()
Description copied from interface: AppService
Gets the foremost application (the one with the highest priority).

Specified by:
getApp in interface AppService

getApp

public App getApp(String name)
Description copied from interface: AppService
Gets an application by name.

Specified by:
getApp in interface AppService

getApps

public Map<String,App> getApps()
Description copied from interface: AppService
Gets the table of associated applications, keyed by name.

Specified by:
getApps in interface AppService
See Also:
Plugin.name()

getPluginType

public Class<App> getPluginType()
Description copied from interface: PTService
Gets the type of plugins managed by this service.

Specified by:
getPluginType in interface PTService<App>

onEvent

protected void onEvent(AppAboutEvent event)

onEvent

protected void onEvent(AppPreferencesEvent event)

onEvent

protected void onEvent(AppQuitEvent event)


Copyright © 2009–2014 SciJava. All rights reserved.