public interface Service extends RichPlugin, Initializable, Disposable
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.
Plugin| Modifier and Type | Method and Description |
|---|---|
default void |
initialize()
Performs any needed initialization when the service is first loaded.
|
default void |
registerEventHandlers()
Registers the service's event handler methods.
|
getIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiondisposedefault void registerEventHandlers()
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.
default void initialize()
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.
initialize in interface InitializableCopyright © 2015–2022 SciJava. All rights reserved.