public abstract class AbstractService extends AbstractRichPlugin implements Service
Service
implementations.Constructor and Description |
---|
AbstractService() |
Modifier and Type | Method and Description |
---|---|
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, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initialize, registerEventHandlers
getIdentifier, log
context
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
public Context getContext()
Contextual
Contextual.setContext(Context)
has not yet been called on this object.getContext
in interface Contextual
getContext
in class AbstractContextual
Contextual.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 Contextual
Context.inject(Object)
public String toString()
toString
in class AbstractRichPlugin
Copyright © 2015–2022 SciJava. All rights reserved.