Package org.scijava.platform
Interface PlatformService
-
- All Superinterfaces:
Comparable<Prioritized>,Contextual,Disposable,HasPluginInfo,Identifiable,Initializable,Locatable,Logged,Prioritized,PTService<Platform>,RichPlugin,SciJavaPlugin,SciJavaService,Service,SingletonService<Platform>,Versioned
- All Known Implementing Classes:
DefaultPlatformService
public interface PlatformService extends SingletonService<Platform>, SciJavaService
Interface for service that handles platform-specific deployment issues. A "platform" can be an operating system, CPU architecture, or version of Java.- Author:
- Curtis Rueden
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default CommandServicecommandService()default EventServiceeventService()intexec(String... args)Executes a native program and waits for it to return.AppEventServicegetAppEventService()Deprecated.UseAppServiceandAppinstead.default CommandServicegetCommandService()Deprecated.UsecommandService()instead.default EventServicegetEventService()Deprecated.UseeventService()instead.List<Platform>getTargetPlatforms()Gets the platform handlers applicable to this platform.voidopen(URL url)Opens a URL in a platform-dependent way.booleanregisterAppMenus(Object menus)Informs the active platform handlers of a UI's newly created application menu structure.-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.Disposable
dispose
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.PTService
getPlugins, getPluginService, getPluginType, pluginService
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.service.Service
registerEventHandlers
-
Methods inherited from interface org.scijava.plugin.SingletonService
create, filterInstances, getInstance, getInstances, initialize, objectService
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
-
-
-
Method Detail
-
eventService
default EventService eventService()
-
commandService
default CommandService commandService()
-
getTargetPlatforms
List<Platform> getTargetPlatforms()
Gets the platform handlers applicable to this platform.
-
open
void open(URL url) throws IOException
Opens a URL in a platform-dependent way. Typically the URL is opened in an external web browser instance, but the behavior is ultimately defined by the available platform handler implementations.- Throws:
IOException
-
exec
int exec(String... args) throws IOException
Executes a native program and waits for it to return.- Returns:
- the exit code of the execution.
- Throws:
IOException
-
registerAppMenus
boolean registerAppMenus(Object menus)
Informs the active platform handlers of a UI's newly created application menu structure. Each active platform handler 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 a platform handler did something platform-specific with them instead.
-
getAppEventService
@Deprecated AppEventService getAppEventService()
Deprecated.UseAppServiceandAppinstead.
-
getEventService
@Deprecated default EventService getEventService()
Deprecated.UseeventService()instead.
-
getCommandService
@Deprecated default CommandService getCommandService()
Deprecated.UsecommandService()instead.
-
-