public interface App extends RichPlugin, SingletonPlugin
AppService
.
Applications discoverable at runtime must implement this interface and be
annotated with @Plugin
with attribute Plugin.type()
=
App
.class. While it possible to create an application merely by
implementing this interface, it is encouraged to instead extend
AbstractApp
, for convenience.
Plugin
,
AppService
Modifier and Type | Method and Description |
---|---|
void |
about()
Displays information about the application.
|
String |
getArtifactId()
The Maven
artifactId of the application. |
default File |
getBaseDirectory()
Gets the application's root directory.
|
String |
getGroupId()
The Maven
groupId of the application. |
default String |
getInfo(boolean mem)
Gets a string with information about the application.
|
Manifest |
getManifest()
Gets the manifest containing metadata about the application.
|
POM |
getPOM()
Gets the Maven POM containing metadata about the application.
|
default String |
getSystemProperty()
A system property which, if set, overrides the base directory of the
application.
|
default String |
getTitle()
Gets the title of the application.
|
default String |
getVersion()
Gets the version of the application.
|
default void |
prefs()
Displays application preferences.
|
default void |
quit()
Quits the application.
|
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
default String getTitle()
String getGroupId()
groupId
of the application.String getArtifactId()
artifactId
of the application.POM getPOM()
Manifest getManifest()
NB: This metadata may be null if run in a development environment.
default String getInfo(boolean mem)
mem
- If true, memory usage information is included.default String getSystemProperty()
default File getBaseDirectory()
void about()
default void prefs()
default void quit()
default String getVersion()
SciJava conforms to the Semantic Versioning specification.
getVersion
in interface Versioned
major.minor.micro
format.Copyright © 2015–2022 SciJava. All rights reserved.