Package org.scijava.platform
Interface Platform
-
- All Superinterfaces:
Disposable,SciJavaPlugin,SingletonPlugin
- All Known Implementing Classes:
AbstractPlatform,DefaultPlatform
public interface Platform extends SingletonPlugin, Disposable
An interface for configuring a specific deployment platform, defined by criteria such as operating system, machine architecture or Java version.Platforms discoverable at runtime must implement this interface and be annotated with @
Pluginwith attributePlugin.type()=Platform.class. While it possible to create a platform merely by implementing this interface, it is encouraged to instead extendAbstractPlatform, for convenience.- Author:
- Curtis Rueden
- See Also:
Plugin,PlatformService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidconfigure(PlatformService service)Activates and configures the platform.default booleanisTarget()Determines whether the given platform is applicable to this runtime.default StringjavaVendor()Java Runtime Environment vendor to match.default StringjavaVersion()Minimum required Java Runtime Environment version.voidopen(URL url)default StringosArch()Operating system architecture to match.default StringosName()Operating system name to match.default StringosVersion()Minimum required operating system version.default booleanregisterAppMenus(Object menus)Informs the platform of a UI's newly created application menu structure.-
Methods inherited from interface org.scijava.Disposable
dispose
-
-
-
-
Method Detail
-
javaVendor
default String javaVendor()
Java Runtime Environment vendor to match.
-
javaVersion
default String javaVersion()
Minimum required Java Runtime Environment version.
-
osArch
default String osArch()
Operating system architecture to match.
-
osName
default String osName()
Operating system name to match.
-
osVersion
default String osVersion()
Minimum required operating system version.
-
isTarget
default boolean isTarget()
Determines whether the given platform is applicable to this runtime.
-
configure
void configure(PlatformService service)
Activates and configures the platform.
-
open
void open(URL url) throws IOException
- Throws:
IOException
-
registerAppMenus
default boolean registerAppMenus(Object menus)
Informs the platform of a UI's newly created application menu structure. The platform may choose to do something platform-specific with the menus.- Parameters:
menus- The UI's newly created menu structure- Returns:
- true iff the menus should not be added to the UI as normal because the platform did something platform-specific with them instead.
-
-