public interface Service extends RichPlugin, 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 |
|---|---|
void |
initialize()
Performs any needed initialization when the service is first loaded.
|
void |
registerEventHandlers()
Registers the service's event handler methods.
|
context, getContext, setContextgetPriority, setPrioritycompareTogetInfo, setInfodisposevoid 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.
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.
Copyright © 2009–2016 SciJava. All rights reserved.