public abstract class AbstractService extends AbstractRichPlugin implements Service
Service implementations.| Constructor and Description |
|---|
AbstractService() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Performs any needed cleanup of the object's services, in preparation for
the object being retired (e.g., to make garbage collection possible).
|
Context |
getContext()
Gets the application context to which the object belongs, or null if
Contextual.setContext(Context) has not yet been called on this object. |
void |
setContext(Context context)
Sets the application context to which the object belongs.
|
String |
toString() |
getInfo, getPriority, setInfo, setPrioritycontextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitialize, registerEventHandlersgetIdentifier, logcontextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionpublic Context getContext()
ContextualContextual.setContext(Context) has not yet been called on this object.getContext in interface ContextualgetContext in class AbstractContextualContextual.context()public void setContext(Context context)
Contextual
Typically this method simply delegates to Context.inject(Object),
and should be called only once to populate the context. Most contextual
objects do not support later alteration of the context, and will throw
IllegalStateException if this method is invoked again.
setContext in interface ContextualsetContext in class AbstractContextualContext.inject(Object),
for an example of how to implement this interfacepublic void dispose()
Disposabledispose in interface Disposablepublic String toString()
toString in class AbstractRichPluginCopyright © 2009–2016 SciJava. All rights reserved.