org.scijava.service
Interface Service
- All Superinterfaces:
- Comparable<Prioritized>, Contextual, Disposable, HasPluginInfo, Prioritized, RichPlugin, SciJavaPlugin
- All Known Subinterfaces:
- AppService, EventHistory, EventService, HandlerService<DT,PT>, LogService, ObjectService, PluginService, PTService<PT>, SciJavaService, SingletonService<PT>, StatusService, ThreadService, TypedService<DT,PT>, WrapperService<DT,PT>
- All Known Implementing Classes:
- AbstractHandlerService, AbstractLogService, AbstractPTService, AbstractService, AbstractSingletonService, AbstractTypedService, AbstractWrapperService, DefaultAppService, DefaultEventHistory, DefaultEventService, DefaultObjectService, DefaultPluginService, DefaultStatusService, DefaultThreadService, StderrLogService
public interface Service
- extends RichPlugin, Disposable
A SciJava service, for a particular area of functionality.
Services discoverable at runtime must implement this interface and be
annotated with @Plugin
with attribute Plugin.type()
=
Service
.class. While it possible to create a service merely by
implementing this interface, it is encouraged to instead extend
AbstractService
, for convenience.
- Author:
- Curtis Rueden
- See Also:
Plugin
Method Summary |
void |
initialize()
Performs any needed initialization when the service is first loaded. |
void |
registerEventHandlers()
Registers the service's event handler methods. |
initialize
void initialize()
- Performs any needed initialization when the service is first loaded.
NB: This method is not intended to be called directly. It is called by
the service framework itself (specifically by the ServiceHelper
)
when initializing the service. It should not be called a second time.
registerEventHandlers
void registerEventHandlers()
- Registers the service's event handler methods.
NB: This method is not intended to be called directly. It is called by
the service framework itself (specifically by the ServiceHelper
)
when initializing the service. It should not be called a second time.
Copyright © 2009–2014 SciJava. All rights reserved.