public class MirageDriver
extends java.lang.Object
MIRAGE_CLASS
must be on the JVM's classpath
in order for this to work. No Mirage components need to be available
during compilation or distribution of this code however.
This is desirable since Mirage is distributed under a more restrictive
licence than the GPL.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MIRAGE_CLASS
Name of the main Mirage application class.
|
static java.lang.String |
MIRAGE_CLASSPATH_PROP
Name of the property used to locate the
MIRAGE_CLASS class. |
Constructor and Description |
---|
MirageDriver() |
Modifier and Type | Method and Description |
---|---|
static void |
invokeMirage(StarTable table,
java.util.List margs)
Invokes the Mirage application on a StarTable object.
|
static boolean |
isMirageAvailable()
Indicates whether the Mirage application is available in this JVM.
|
static void |
main(java.lang.String[] args)
Invoke the Mirage application on a list of named StarTables.
|
public static final java.lang.String MIRAGE_CLASS
public static final java.lang.String MIRAGE_CLASSPATH_PROP
MIRAGE_CLASS
class.public static void main(java.lang.String[] args) throws java.io.IOException, java.lang.Exception
args
- flags and names of the StarTables to pass to Miragejava.io.IOException
java.lang.Exception
public static boolean isMirageAvailable()
invokeMirage(uk.ac.starlink.table.StarTable, java.util.List)
method will only work if this method
returns true.public static void invokeMirage(StarTable table, java.util.List margs) throws java.lang.ClassNotFoundException, java.lang.Exception
table
- the StarTable to pass to Miragemargs
- a list of other arguments (Strings) to pass as arguments
to Miragejava.lang.ClassNotFoundException
- if isMirageAvailable()
returns falsejava.lang.Exception