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.
|
boolean |
isTarget()
Determines whether the given platform is applicable to this runtime.
|
String |
javaVendor()
Java Runtime Environment vendor to match.
|
String |
javaVersion()
Minimum required Java Runtime Environment version.
|
void |
open(URL url) |
String |
osArch()
Operating system architecture to match.
|
String |
osName()
Operating system name to match.
|
String |
osVersion()
Minimum required operating system version.
|
boolean |
registerAppMenus(Object menus)
Informs the platform of a UI's newly created application menu structure.
|
dispose
String javaVendor()
String javaVersion()
String osArch()
String osName()
String osVersion()
boolean isTarget()
void configure(PlatformService service)
void open(URL url) throws IOException
IOException
boolean registerAppMenus(Object menus)
menus
- The UI's newly created menu structureCopyright © 2009–2015 SciJava. All rights reserved.