public class FileLauncher extends Object
g9.config.properties ) or a
Spring Configuration. See the Java Target manual in the g9 documentation
for more information about how to configure the runtime system.
Note: Previous versions of this class delegated to a LauncherInterface. These methods are now
deprecated and the LaunchInterface has been replaced by Launcher.
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FILELAUNCHER_IMPL
Deprecated.
The default file launcher is now defined as a spring bean in
the the no.g9.support.G9Services.xml.
|
| Constructor and Description |
|---|
FileLauncher() |
| Modifier and Type | Method and Description |
|---|---|
static void |
open(File file)
Launch the associated application to open the given file.
|
static void |
open(URL url)
Launch the system default browser to display the given URL.
|
static void |
openLocal(File file)
Deprecated.
This method is replaced by
open(File). |
static void |
openRemote(URL url)
Deprecated.
This method is replaced by
open(URL). |
@Deprecated public static final String DEFAULT_FILELAUNCHER_IMPL
@Deprecated public static void openLocal(File file)
open(File).file - the given file.@Deprecated public static void openRemote(URL url)
open(URL).url - the given URL.public static void open(File file)
file - the file to open.public static void open(URL url)
url - the URL to browse.Copyright © 2006–2017 Esito AS. All rights reserved.