public abstract class AbstractContextual extends Object implements Contextual
Contextual
objects.
Delegates to Context.inject(Object)
to do the actual work of
setting the context, injecting service parameters, and registering
EventHandler
methods as event subscribers.
Context.inject(Object)
Constructor and Description |
---|
AbstractContextual() |
Modifier and Type | Method and Description |
---|---|
Context |
context()
Gets the application context to which the object belongs.
|
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setContext
public Context context()
Contextual
context
in interface Contextual
Contextual.getContext()
public Context getContext()
Contextual
Contextual.setContext(Context)
has not yet been called on this object.getContext
in interface Contextual
Contextual.context()
Copyright © 2015–2022 SciJava. All rights reserved.