|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmoss.kernel.MExec
public class MExec
the MExec class provides the necessary to allow the kernel to load some program from the file-system
| Field Summary | |
|---|---|
static int |
EXEC_CLASS
Java class (that should implement an appropriate executable interface) |
static int |
EXEC_INVALID
invalid executable |
static int |
EXEC_SCRIPT
script-based command |
| Constructor Summary | |
|---|---|
MExec()
constructor: creates a new MExec |
|
| Method Summary | |
|---|---|
java.lang.String |
classnameof()
returns a string providing a class-name for MExecCL objects. |
int |
errorof()
returns the last reported error for this MExec object |
java.lang.ClassLoader |
getclassloader()
returns a class loader for some executable |
static MExec |
load_active(java.lang.String path)
this is called to return an already loaded MExec for a path (ie something that is already running). |
int |
setpath(java.lang.String path)
sets the file for an MExec -- this will look at the file and attempt to determine what type it is. |
java.lang.String[] |
shebangof()
returns the array of strings that represents the hash-bang path, with this executable's name attached |
static void |
store_active(MExec exec,
java.lang.String path)
adds an MExec to the list of those loaded |
static void |
trash_active(MExec exec,
java.lang.String path)
this removes a loaded MExec, called when a process is done using it (during process shutdown) |
int |
typeof()
return the MExec type of this object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int EXEC_INVALID
public static final int EXEC_CLASS
public static final int EXEC_SCRIPT
| Constructor Detail |
|---|
public MExec()
| Method Detail |
|---|
public int setpath(java.lang.String path)
path - path to executable file
public java.lang.ClassLoader getclassloader()
public java.lang.String classnameof()
public java.lang.String[] shebangof()
public int errorof()
public int typeof()
public static MExec load_active(java.lang.String path)
path - path to executable
public static void store_active(MExec exec,
java.lang.String path)
exec - MExec representing the executablepath - path to the executable
public static void trash_active(MExec exec,
java.lang.String path)
exec - MExec representing the executablepath - path to the executable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||