HyperView2.959 bannerDocumentation
public class ObjectRegistry implements ExternalizerConstants

The Object Registry stores Class serialization particulars into a file named "ObjectRegistry.dat."

Class variables

final static int MAX_OBJECTS;                                  //Default 255

public static HyperLinkedList serializationList;        // List of SerializtionLink Objects

public static HyperLinkedList listenerList;                // List of listeners to notify on ObjectRegistry changes.

String sourceURL;     // For URL/StateMachine expansion

public static int totalObjectEntries;
Peek this to get the total # of classes  currently in the Registry.

Public Methods:

public static ObjectRegistry getRegistry()

getRegistry()   get a reference to  the ObjectRegistry.


 ObjectRegistry myObjectRegistry = ObjecttRegistry.getRegistry();

public static HyperLinkedList load()

Load the Registry from the file ObjectRegistry.dat

public static void addListener(Object tObject)

Add an ObjectRegstryListener
If the Registry changes the it will synch on the public  public void update(HyperLinkedList)

public static void remListener(Object tObject)  

Remove the listener

public static SerializationLink retrieve(String tClassName)

public static SerializationLink retrieve(HyperView tView,String tClassName)

public static int store(String tName,int tByteSize)

public static int store(HyperView tView,HyperLinkedList tClassFieldList,int tByteSize,String tName)

public static int save();

public static int remove(String tClassName)

public void echo()

Echo the Registry Classes & their fields to stdout

public static String[] getClassList()
Returns a string array  of all the classes in the registry.

public static int getTotalObjects()
Get the total# of classes in the registry/

public static void main(String args[])

Call ObjectRegistry from the command line

java -classpath .;..\nio_server; ObjectRegistry

This will instantiate a  registry and call echo()