|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
org.scijava.AbstractGateway
org.scijava.SciJava
public class SciJava
Main entry point into SciJava. This class enables working with SciJava services in a simple way, while retaining extensibility (i.e., access to third-party services).
| Constructor Summary | |
|---|---|
SciJava()
Creates a new SciJava application context with all available services. |
|
SciJava(boolean empty)
Creates a new Scijava application context. |
|
SciJava(Class... serviceClasses)
Creates a new SciJava application context with the specified services (and any required service dependencies). |
|
SciJava(Collection<Class<? extends Service>> serviceClasses)
Creates a new SciJava application context with the specified services (and any required service dependencies). |
|
SciJava(Context context)
Creates a new SciJava application context which wraps the given existing SciJava context. |
|
| Method Summary |
|---|
| Methods inherited from class org.scijava.AbstractGateway |
|---|
app, appEvent, command, console, display, event, eventHistory, get, get, getApp, getInfo, getTitle, getVersion, icon, input, io, log, menu, module, object, options, platform, plugin, recentFile, script, status, text, thread, tool, widget |
| Methods inherited from class org.scijava.plugin.AbstractRichPlugin |
|---|
compareTo, getInfo, getPriority, setInfo, setPriority, toString |
| Methods inherited from class org.scijava.AbstractContextual |
|---|
context, getContext, setContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.scijava.Contextual |
|---|
context, getContext, setContext |
| Methods inherited from interface org.scijava.Prioritized |
|---|
getPriority, setPriority |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface org.scijava.plugin.HasPluginInfo |
|---|
getInfo, setInfo |
| Constructor Detail |
|---|
public SciJava()
public SciJava(boolean empty)
empty - If true, the context will be empty; otherwise, it will be
initialized with all available services.public SciJava(Class... serviceClasses)
Developer's note: This constructor's argument is raw (i.e.,
Class... instead of Class<? extends Service>...) because
otherwise, downstream invocations (e.g.,
new SciJava(LogService.class)) yield the potentially confusing
warning:
Type safety: A generic array of Class extends Service> is created for a varargs parameter
To avoid this, we have opted to use raw types and suppress the relevant warning here instead.
serviceClasses - A list of types that implement the Service
interface (e.g., LogService.class).
ClassCastException - If any of the given arguments do not implement
the Service interface.public SciJava(Collection<Class<? extends Service>> serviceClasses)
serviceClasses - A collection of types that implement the
Service interface (e.g., LogService.class).public SciJava(Context context)
Context
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||