|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.corosol.component.impl.DefaultJVirtualMachine
public class DefaultJVirtualMachine
The default implementation of the fr.umlv.corosol.component.JVirtualMachine interface.
| Constructor Summary | |
|---|---|
DefaultJVirtualMachine()
Creates a new java virtual machine. |
|
| Method Summary | |
|---|---|
JProxy |
addComponent(JVMComponent component)
Adds the specified component into the JVM. |
boolean |
containsComponent(java.lang.Class type)
Determines if this jvm contains a component of the specified type. |
JProxy |
getComponent(java.lang.Class type)
Returns the JVM component of the specified type. |
JVMComponent[] |
getComponents()
Returns an array containing all the JVM components. |
java.lang.Object |
getNativeObject()
Returns the object equivalent to this object but which belong to the underlaying Virtual Machine. |
void |
replaceComponent(JVMComponent component)
Replaces a component into the JVM. |
void |
startUp(java.lang.String className,
java.lang.String[] args)
Executes the class asociated with the given string name. |
java.lang.String |
toString()
Returns a string representation of the JVM. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJVirtualMachine()
| Method Detail |
|---|
public java.lang.Object getNativeObject()
public JProxy getComponent(java.lang.Class type)
getComponent in interface JVirtualMachinetype - the type of a JVM component
java.lang.IllegalArgumentException - if the component
doesn't exist in the virtual machinepublic JProxy addComponent(JVMComponent component)
addComponent in interface JVirtualMachinecomponent - a component
public void replaceComponent(JVMComponent component)
replaceComponent in interface JVirtualMachinecomponent - a componentpublic boolean containsComponent(java.lang.Class type)
containsComponent in interface JVirtualMachinetype - the type of a JVM component
public JVMComponent[] getComponents()
getComponents in interface JVirtualMachinepublic java.lang.String toString()
toString in class java.lang.Object
public void startUp(java.lang.String className,
java.lang.String[] args)
throws java.lang.Throwable
startUp in interface JVirtualMachineclassName - the fully qualified name of the desired classargs - the command line arguments
java.lang.Throwable - if an exception occurs during execution
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||