public interface App extends RichPlugin, SingletonPlugin, Versioned
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. |
File |
getBaseDirectory()
Gets the application's root directory.
|
String |
getGroupId()
The Maven
groupId of the application. |
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.
|
String |
getSystemProperty()
A system property which, if set, overrides the base directory of the
application.
|
String |
getTitle()
Gets the title of the application.
|
String |
getVersion()
Gets the version of the application.
|
void |
prefs()
Displays application preferences.
|
void |
quit()
Quits the application.
|
getIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationString 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.
String getInfo(boolean mem)
mem - If true, memory usage information is included.String getSystemProperty()
File getBaseDirectory()
void about()
void prefs()
void quit()
String getVersion()
SciJava conforms to the Semantic Versioning specification.
getVersion in interface Versionedmajor.minor.micro format.Copyright © 2009–2016 SciJava. All rights reserved.