fr.umlv.corosol.component.impl
Class DefaultJLayoutFactory

java.lang.Object
  extended by fr.umlv.corosol.component.impl.DefaultJLayoutFactory
All Implemented Interfaces:
JLayoutFactory, JObject, JVMComponent

public class DefaultJLayoutFactory
extends java.lang.Object
implements JLayoutFactory

A JLayout factory.

Author:
Christophe Deleray

Constructor Summary
DefaultJLayoutFactory()
          Creates a new layout factory.
 
Method Summary
 void configure(JVirtualMachine jvm)
          Configures the layout factory via the specified JVM.
 JArrayLayout getArrayLayout(JClass componentType)
          Returns the layout of all arrays of the specified component type.
 JClassLayout getClassLayout(JClass type)
          Returns the layout of an array of the specified component type into the Corosol JVM heap.
 java.lang.Class getComponentClass()
          Returns the class object describing this component.
 void replace(JVMComponent component)
          Replaces the data of this layout factory by the data of the specified component.
 void updateLayouts(JHeap heap)
          Updates the layouts.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultJLayoutFactory

public DefaultJLayoutFactory()
Creates a new layout factory.

Method Detail

getComponentClass

public java.lang.Class getComponentClass()
Returns the class object describing this component.

Specified by:
getComponentClass in interface JVMComponent

configure

public void configure(JVirtualMachine jvm)
Configures the layout factory via the specified JVM.

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

replace

public void replace(JVMComponent component)
Replaces the data of this layout factory by the data of the specified component. The type of component must be the type of this JLayoutFactory component.

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

getClassLayout

public JClassLayout getClassLayout(JClass type)
Returns the layout of an array of the specified component type into the Corosol JVM heap.

Specified by:
getClassLayout in interface JLayoutFactory
Parameters:
type - a component type of an array
Returns:
the layout the specified array component type into the Corosol JVM heap

getArrayLayout

public JArrayLayout getArrayLayout(JClass componentType)
Returns the layout of all arrays of the specified component type.

Specified by:
getArrayLayout in interface JLayoutFactory
Parameters:
componentType - the component type of an array
Returns:
the layout of arrays of the specified component type

updateLayouts

public void updateLayouts(JHeap heap)
Updates the layouts.

Specified by:
updateLayouts in interface JLayoutFactory