fr.umlv.corosol.component.impl
Class AbstractJVMComponent

java.lang.Object
  extended by fr.umlv.corosol.component.impl.AbstractJVMComponent
All Implemented Interfaces:
JObject, JVMComponent
Direct Known Subclasses:
DefaultJClassLoader, DefaultJFieldLookup, DefaultJInstructionFactory, DefaultJMethodInvoker, DefaultJMethodLookup, DefaultJScheduler

public abstract class AbstractJVMComponent
extends java.lang.Object
implements JVMComponent

This class is an abstract implementation of the JVMComponent interface. It is the base class of the component classes.

Author:
Christophe Deleray

Constructor Summary
AbstractJVMComponent()
           
 
Method Summary
 void configure(JVirtualMachine jvm)
          Configures the component via the specified JVM.
 void replace(JVMComponent component)
          Replaces the data of this component by the data of the specified component.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.umlv.corosol.component.JVMComponent
getComponentClass
 

Constructor Detail

AbstractJVMComponent

public AbstractJVMComponent()
Method Detail

configure

public void configure(JVirtualMachine jvm)
Configures the component via the specified JVM. During this configuration operation, this component can meet any component via the specified JVM. By default, this method do nothing.

Specified by:
configure in interface JVMComponent
Parameters:
jvm - the Java Virtual Machine

replace

public void replace(JVMComponent component)
Replaces the data of this component by the data of the specified component. The type of component must be the type of this component. This method should be call when a component is replaced in the Corosol Virtual Machine.

Specified by:
replace in interface JVMComponent
Parameters:
component - a component to be used to initialize this component