public interface Platform extends SingletonPlugin, Disposable
Platforms discoverable at runtime must implement this interface and be
annotated with @Plugin
with attribute Plugin.type()
=
Platform
.class. While it possible to create a platform merely by
implementing this interface, it is encouraged to instead extend
AbstractPlatform
, for convenience.
Plugin
,
PlatformService
Modifier and Type | Method and Description |
---|---|
void |
configure(PlatformService service)
Activates and configures the platform.
|
default boolean |
isTarget()
Determines whether the given platform is applicable to this runtime.
|
default String |
javaVendor()
Java Runtime Environment vendor to match.
|
default String |
javaVersion()
Minimum required Java Runtime Environment version.
|
void |
open(URL url) |
default String |
osArch()
Operating system architecture to match.
|
default String |
osName()
Operating system name to match.
|
default String |
osVersion()
Minimum required operating system version.
|
default boolean |
registerAppMenus(Object menus)
Informs the platform of a UI's newly created application menu structure.
|
dispose
default String javaVendor()
default String javaVersion()
default String osArch()
default String osName()
default String osVersion()
default boolean isTarget()
void configure(PlatformService service)
void open(URL url) throws IOException
IOException
default boolean registerAppMenus(Object menus)
menus
- The UI's newly created menu structureCopyright © 2015–2022 SciJava. All rights reserved.