public class SciJava extends AbstractGateway
| Constructor and Description |
|---|
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.
|
app, appEvent, command, console, convert, display, event, eventHistory, get, get, getApp, getInfo, getShortName, getTitle, getVersion, icon, input, io, launch, log, main, menu, module, object, options, platform, plugin, prefs, recentFile, script, startup, status, text, thread, tool, ui, widgetgetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdentifiercontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationpublic 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).Copyright © 2015–2022 SciJava. All rights reserved.