jxl.enclosure.superstatic
Class EnclosureImpl
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
jxl.superstatic.SSObject
jxl.enclosure.superstatic.EnclosureImpl
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, Enclosure
public class EnclosureImpl
- extends SSObject
- implements Enclosure
This class provides the implementation for Enclosure startup and class launching.
This class should not be used directly by a client or a user. Use
Main
instead.
- Author:
- Alex Lynch
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary |
EnclosureImpl()
This will be called by the Superstatic registry and should not be called by
clients. |
Method Summary |
void |
runClass(java.lang.String cName,
java.lang.String[] realArgs)
Load or run a class. |
void |
showGui()
Display the class-loading gui. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
EnclosureImpl
public EnclosureImpl()
throws java.rmi.RemoteException
- This will be called by the Superstatic registry and should not be called by
clients.
- Throws:
java.rmi.RemoteException
runClass
public void runClass(java.lang.String cName,
java.lang.String[] realArgs)
throws java.rmi.RemoteException
- Load or run a class. If
name
denotes a main-class its main method is
invoke with args
. Otherwise name
is only loaded. If no
module is found localy that contians this class, then Enclosure will attempt to
locate the class on peer system. Therefor this the prefered meas for a user to
install an app or library, without running it.
- Specified by:
runClass
in interface Enclosure
- Parameters:
cName
- Main-class name to runrealArgs
- Args to the main-class
- Throws:
java.rmi.RemoteException
- See Also:
ModuleServer
showGui
public void showGui()
throws java.rmi.RemoteException,
java.io.IOException
- Display the class-loading gui.
- Specified by:
showGui
in interface Enclosure
- Throws:
java.rmi.RemoteException
java.io.IOException